libliftoff/.builds/alpine.yml

37 lines
921 B
YAML
Raw 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
- gcovr
- py3-setuptools # https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/21003
2019-09-15 21:44:18 +02:00
sources:
- https://github.com/emersion/libliftoff
artifacts:
- coveragereport.tar.gz
2019-09-15 21:44:18 +02:00
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
- coverage: |
cd libliftoff
echo "exclude-directories = test/" >>gcovr.cfg
echo "exclude-directories = example/" >>gcovr.cfg
ninja -C build-gcc/ coverage-html
cd build-gcc/meson-logs/
tar -czvf ~/coveragereport.tar.gz coveragereport