From bc9f51e78b3c294d9b437ffa9b8b045608012438 Mon Sep 17 00:00:00 2001 From: Juha Alanen Date: Wed, 26 Feb 2020 16:18:37 +0200 Subject: [PATCH] [build] Generate coverage results separately before uploading to codecov The codecov.io script has issues with generating coverage result files so generate them separately with gcov and only use the codecov.io script to upload the results. --- circle.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index 371770814..fbe5aa5ee 100644 --- a/circle.yml +++ b/circle.yml @@ -377,10 +377,16 @@ commands: fi upload-coverage-results: steps: + - run: + name: Get coverage results + command: | + cd build + find . -type f -iname *.gcda -exec gcov -p -b {} \; - run: name: Upload coverage results to codecov.io command: | - bash <(curl -sSfL https://codecov.io/bash) || echo 'Codecov failed to upload' + bash <(curl -sSfL https://codecov.io/bash) -X gcov || echo 'Codecov failed to upload' + jobs: ios-render-test-runner: executor: macos-11_3_1