ci: fix code coverage reports generation

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-03-23 16:53:12 +00:00
parent 1ba402e11f
commit b5be5e3cdd
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 8 additions and 2 deletions

View File

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