Avoid recompiling tests for release profile

This commit is contained in:
Kirill Bulatov
2022-03-25 11:48:30 +02:00
committed by Kirill Bulatov
parent 18dfc769d8
commit d56a0ee19a

View File

@@ -146,11 +146,13 @@ jobs:
command: |
if [[ $BUILD_TYPE == "debug" ]]; then
cov_prefix=(scripts/coverage "--profraw-prefix=$CIRCLE_JOB" --dir=/tmp/zenith/coverage run)
CARGO_FLAGS=
elif [[ $BUILD_TYPE == "release" ]]; then
cov_prefix=()
CARGO_FLAGS=--release
fi
"${cov_prefix[@]}" cargo test
"${cov_prefix[@]}" cargo test $CARGO_FLAGS
# Install the rust binaries, for use by test jobs
- run: