mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
3f5ca0aae4
This is needed so that gitlab can know where to extract the coverage percentage from in the output, to be able to track and report it.
44 lines
996 B
YAML
44 lines
996 B
YAML
.unit-tests:
|
|
script:
|
|
- ./autogen && ./configure
|
|
- make check
|
|
|
|
.unit-tests-asan:
|
|
script:
|
|
- ./autogen && ./configure --enable-sanitize
|
|
- make check
|
|
|
|
.coverage:
|
|
script:
|
|
- ./autogen && ./configure --disable-static
|
|
- make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb"
|
|
- gcovr -s -e test/
|
|
coverage: /^TOTAL.*\s+(\d+\%)$/
|
|
|
|
.debian:
|
|
image: debian:latest
|
|
stage: test
|
|
before_script:
|
|
- apt-get update -qq
|
|
- apt-get install -qq -y --no-install-recommends
|
|
git gcc make autoconf automake libtool libmd-dev gcovr
|
|
|
|
.alpine:
|
|
image: alpine:latest
|
|
stage: test
|
|
before_script:
|
|
- apk add --no-cache git gcc make autoconf automake libtool
|
|
bsd-compat-headers linux-headers libmd-dev musl-dev gcovr
|
|
|
|
unit-tests:debian:
|
|
extends: [.debian, .unit-tests-asan]
|
|
|
|
coverage:debian:
|
|
extends: [.debian, .coverage]
|
|
|
|
unit-tests:alpine:
|
|
extends: [.alpine, .unit-tests]
|
|
|
|
coverage:alpine:
|
|
extends: [.alpine, .coverage]
|