mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-25 21:59:11 +01:00
15f6ce7832
Right now alpine/edge has a broken gcovr package. We don't need the bleeding edge so let's switch to alpine/latest for stability.
36 lines
908 B
YAML
36 lines
908 B
YAML
image: alpine/latest
|
|
packages:
|
|
- gcc
|
|
- clang
|
|
- compiler-rt
|
|
- meson
|
|
- libdrm-dev
|
|
- gcovr
|
|
sources:
|
|
- https://gitlab.freedesktop.org/emersion/libliftoff.git
|
|
artifacts:
|
|
- coveragereport.tar.gz
|
|
environment:
|
|
UBSAN_OPTIONS: halt_on_error=1
|
|
tasks:
|
|
- setup: |
|
|
cd libliftoff
|
|
CC=gcc meson setup build-gcc/ --fatal-meson-warnings -Db_coverage=true
|
|
CC=clang meson setup build-clang/ --fatal-meson-warnings -Db_sanitize=address,undefined -Db_lundef=false
|
|
- 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
|
|
ninja -C build-gcc/ coverage-html
|
|
cd build-gcc/meson-logs/
|
|
tar -czf ~/coveragereport.tar.gz coveragereport
|