From d56a0ee19aeec715f9c839a9bcdc91c650000f1e Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 25 Mar 2022 11:48:30 +0200 Subject: [PATCH] Avoid recompiling tests for release profile --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f05ad3e816..513d305b5d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: