libliftoff/.build.yml

34 lines
816 B
YAML
Raw Permalink Normal View History

2019-09-15 21:44:18 +02:00
image: alpine/edge
packages:
- gcc
- clang
- meson
- libdrm-dev
2019-10-14 17:04:59 +02:00
# Required by codecov
- gcovr
- bash
- findutils
2019-09-15 21:44:18 +02:00
sources:
- https://github.com/emersion/libliftoff
tasks:
- setup: |
cd libliftoff
2019-10-14 17:04:59 +02:00
CC=gcc meson build-gcc/ -Db_coverage=true
2019-09-15 21:44:18 +02:00
CC=clang meson build-clang/
- build-gcc: |
cd libliftoff
ninja -C build-gcc/
- build-clang: |
cd libliftoff
ninja -C build-clang/
- test-gcc: |
cd libliftoff
ninja -C build-gcc/ test
- test-clang: |
cd libliftoff
ninja -C build-clang/ test
2019-10-14 17:04:59 +02:00
- 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/*'