From 9350dfb215faf82df14e93e9187fa2520e73dacf Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Wed, 8 Dec 2021 19:24:27 +0300 Subject: [PATCH] [CI] Merge *.profraw files prior to uploading workspace Hopefully, this will make CI pipeline a bit faster. --- .circleci/config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 40b30b1acd..e46192d507 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -194,6 +194,14 @@ jobs: command: | cp -a tmp_install /tmp/zenith/pg_install + - run: + name: Merge coverage data + command: | + # This will speed up workspace uploads + if [[ $BUILD_TYPE == "debug" ]]; then + scripts/coverage "--profraw-prefix=$CIRCLE_JOB" --dir=/tmp/zenith/coverage merge + fi + # Save the rust binaries and coverage data for other jobs in this workflow. - persist_to_workspace: root: /tmp/zenith @@ -354,6 +362,13 @@ jobs: # The store_test_results step tells CircleCI where to find the junit.xml file. - store_test_results: path: /tmp/test_output + - run: + name: Merge coverage data + command: | + # This will speed up workspace uploads + if [[ $BUILD_TYPE == "debug" ]]; then + scripts/coverage "--profraw-prefix=$CIRCLE_JOB" --dir=/tmp/zenith/coverage merge + fi # Save coverage data (if any) - persist_to_workspace: root: /tmp/zenith