From b5be5e3cdde8b87646de42153d2038ffa73c8a97 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 23 Mar 2019 16:53:12 +0000 Subject: [PATCH] ci: fix code coverage reports generation Signed-off-by: Yuxuan Shui --- .circleci/config.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f3f9928..c05aed7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,8 +57,14 @@ jobs: name: test command: ninja -vC /tmp/workspace/build test - run: - name: upload coverage - command: bash <(curl -s https://codecov.io/bash) + name: generate coverage reports + command: cd build; find -name '*.gcno' -exec gcov -pb {} + + - run: + name: download codecov scripts + command: curl -s https://codecov.io/bash > codecov.sh + - run: + name: upload coverage reports + command: bash ./codecov.sh -X gcov minimal: executor: e