Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test-release:
clean-release:
cargo clean --release

ci-all: | ci-format ci-build ci-doc ci-lint ci-test
ci-all: | ci-format ci-build ci-doc ci-lint ci-test ci-coverage

ci-format:
cargo fmt --check --all
Expand All @@ -80,3 +80,8 @@ ci-test:
cargo test --workspace --all-features
cargo clean
cargo test --release --workspace --all-features

ci-coverage:
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov --locked || true
cargo llvm-cov --workspace --all-features --fail-under-lines 80
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ stages:
make ci-test
displayName: 'Test'

- script: |
make ci-coverage
displayName: 'Coverage (fail under 80% lines)'

- publish: $(System.DefaultWorkingDirectory)/
artifact: sonic-dash-ha
displayName: 'Archive release binaries'
Loading