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
|
2021-04-30 10:17:59 +02:00
|
|
|
- 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
|
2021-04-30 10:17:59 +02:00
|
|
|
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
|
2021-04-30 10:17:59 +02:00
|
|
|
- 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
|