mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-23 10:36:42 +01:00
build: Add code coverage support in the GitLab CI
This commit is contained in:
parent
a9fc285988
commit
15bd284b29
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,8 @@ ChangeLog
|
||||
*.a
|
||||
*.log
|
||||
*.trs
|
||||
*.gcda
|
||||
*.gcno
|
||||
.dirstamp
|
||||
.deps/
|
||||
.libs/
|
||||
|
@ -1,10 +1,19 @@
|
||||
image: debian:buster
|
||||
|
||||
test:
|
||||
before_script:
|
||||
before_script:
|
||||
- apt-get update -qq
|
||||
- apt-get install -qq -y --no-install-recommends
|
||||
git gcc make autoconf automake libtool libmd-dev
|
||||
git gcc make autoconf automake libtool libmd-dev gcovr
|
||||
|
||||
unit-tests:
|
||||
stage: test
|
||||
script:
|
||||
- ./autogen && ./configure
|
||||
- make check
|
||||
|
||||
coverage:
|
||||
stage: test
|
||||
script:
|
||||
- ./autogen && ./configure --disable-static
|
||||
- make check CFLAGS="--coverage -O0 -ggdb" LDFLAGS="--coverage -O0 -ggdb"
|
||||
- gcovr -s -e test/
|
||||
|
Loading…
x
Reference in New Issue
Block a user