Skip to content

Commit

Permalink
ci: removed unnecessary flags when running coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 26, 2020
1 parent d46f1a1 commit 65e28bf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ endif
test:
cargo test


COV_CARGO_INCREMENTAL=0
COV_RUSTFLAGS="-Zinstrument-coverage"
COV_RUSTDOCFLAGS="-Cpanic=abort"

test-coverage:
ifndef COVERAGE_CACHE
# We need to remove build files in case a non-coverage test has been run
Expand All @@ -39,9 +34,7 @@ ifndef COVERAGE_CACHE
endif
rm -rf **/*.profraw
# Build and test
env CARGO_INCREMENTAL=${COV_CARGO_INCREMENTAL} \
RUSTFLAGS=${COV_RUSTFLAGS} \
RUSTDOCFLAGS=${COV_RUSTDOCFLAGS} \
env RUSTFLAGS="-Zinstrument-coverage" \
LLVM_PROFILE_FILE="grcov-%p-%m.profraw" \
cargo test --verbose

Expand Down

0 comments on commit 65e28bf

Please sign in to comment.