Skip to content

Commit 79638db

Browse files
committed
minor updates
1 parent 4540b98 commit 79638db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust.mk

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ CARGO ?= cargo
22
COVERAGE_IGNORES=
33

44
ifdef IN_CI
5-
RUST_COVER_TYPE = --codecov
5+
RUST_COVER_TYPE = --codecov --output-path codecov.json
66
NEXTEST_FLAGS = --no-fail-fast
7+
WITH_COVERAGE = 1
78
else
89
RUST_COVER_TYPE = --open
910
endif
@@ -17,7 +18,10 @@ _version:
1718
_build:: _version
1819

1920
_test:: _version
21+
ifeq ($(WITH_COVERAGE), 1)
22+
# cleaning causes a rebuild, so we only do it locally if the user requests it
2023
@$(CARGO) llvm-cov clean --workspace
24+
endif
2125

2226
test: unit itest
2327

0 commit comments

Comments
 (0)