gitlab-ci.yml - generate coverage report

This commit is contained in:
Vlasta Vesely 2021-02-25 11:07:17 +01:00
parent c5d8d17599
commit fe898660c6
No known key found for this signature in database
GPG key ID: EB0E649DC0DFCC22

View file

@ -2,14 +2,21 @@ image: debian
stages:
- test
- coverage
before_script:
- apt update
- apt install -y autoconf make gcc pkg-config check
- apt install -y autoconf make gcc lcov check pkg-config
test:
stage: test
script:
- sh autogen.sh
- sh configure
- sh autogen.sh && sh configure
- make test
coverage:
stage: coverage
script:
- sh autogen.sh && sh configure --enable-gcov
- make coverage
coverage: /lines.+?:\s*(\d+\.\d+)%/