mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-25 21:59:11 +01:00
799dddd6c4
Instead generate the HTML reports ourselves, and rely on builds.sr.ht artifacts.
36 lines
921 B
YAML
36 lines
921 B
YAML
image: alpine/edge
|
|
packages:
|
|
- gcc
|
|
- clang
|
|
- meson
|
|
- libdrm-dev
|
|
- gcovr
|
|
- py3-setuptools # https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/21003
|
|
sources:
|
|
- https://github.com/emersion/libliftoff
|
|
artifacts:
|
|
- coveragereport.tar.gz
|
|
tasks:
|
|
- setup: |
|
|
cd libliftoff
|
|
CC=gcc meson build-gcc/ -Db_coverage=true
|
|
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
|