2019-09-15 21:44:18 +02:00
|
|
|
image: alpine/edge
|
|
|
|
packages:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2022-07-27 09:05:01 +02:00
|
|
|
- compiler-rt
|
2019-09-15 21:44:18 +02:00
|
|
|
- meson
|
|
|
|
- libdrm-dev
|
2019-10-14 17:04:59 +02:00
|
|
|
- gcovr
|
2019-09-15 21:44:18 +02:00
|
|
|
sources:
|
2021-10-25 15:01:58 +02:00
|
|
|
- https://gitlab.freedesktop.org/emersion/libliftoff.git
|
2021-04-30 10:17:59 +02:00
|
|
|
artifacts:
|
|
|
|
- coveragereport.tar.gz
|
2019-09-15 21:44:18 +02:00
|
|
|
tasks:
|
|
|
|
- setup: |
|
|
|
|
cd libliftoff
|
2022-07-27 09:07:05 +02:00
|
|
|
CC=gcc meson build-gcc/ --fatal-meson-warnings -Db_coverage=true
|
|
|
|
CC=clang meson build-clang/ --fatal-meson-warnings -Db_sanitize=address,undefined -Db_lundef=false
|
2019-09-15 21:44:18 +02:00
|
|
|
- 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/
|
2022-07-27 09:08:00 +02:00
|
|
|
tar -czf ~/coveragereport.tar.gz coveragereport
|