[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user