libliftoff/.builds/alpine.yml
Simon Ser d98ae24328 Switch to "meson setup"
Fixes this warning:

    WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
2023-02-22 10:57:03 +01:00

34 lines
860 B
YAML

image: alpine/edge
packages:
- gcc
- clang
- compiler-rt
- meson
- libdrm-dev
- gcovr
sources:
- https://gitlab.freedesktop.org/emersion/libliftoff.git
artifacts:
- coveragereport.tar.gz
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