ci: add codecov

This commit is contained in:
Simon Ser 2019-10-14 18:04:59 +03:00
parent 72f5e9bd2f
commit 14d64ebe39
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -4,12 +4,16 @@ packages:
- clang
- meson
- libdrm-dev
# Required by codecov
- gcovr
- bash
- findutils
sources:
- https://github.com/emersion/libliftoff
tasks:
- setup: |
cd libliftoff
CC=gcc meson build-gcc/
CC=gcc meson build-gcc/ -Db_coverage=true
CC=clang meson build-clang/
- build-gcc: |
cd libliftoff
@ -23,3 +27,7 @@ tasks:
- test-clang: |
cd libliftoff
ninja -C build-clang/ test
- upload-coverage: |
cd libliftoff/build-gcc
export CODECOV_TOKEN=ea488296-5f33-439f-a8c1-dc88a5ae9753
curl -s https://codecov.io/bash | sed 's/-execdir $gcov_exe/-exec $gcov_exe/' | bash -s -- -g '*/example/*' -g '*/test/*'