[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.
This commit is contained in:
Juha Alanen
2020-02-26 16:18:37 +02:00
parent 7cc2f7efd5
commit bc9f51e78b

View File

@@ -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