mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-11-16 19:47:55 +01:00
ci: add codecov
This commit is contained in:
parent
72f5e9bd2f
commit
14d64ebe39
1 changed files with 9 additions and 1 deletions
10
.build.yml
10
.build.yml
|
@ -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/*'
|
||||
|
|
Loading…
Reference in a new issue