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: stages:
- test - test
- coverage
before_script: before_script:
- apt update - apt update
- apt install -y autoconf make gcc pkg-config check - apt install -y autoconf make gcc lcov check pkg-config
test: test:
stage: test stage: test
script: script:
- sh autogen.sh - sh autogen.sh && sh configure
- sh configure
- make test - make test
coverage:
stage: coverage
script:
- sh autogen.sh && sh configure --enable-gcov
- make coverage
coverage: /lines.+?:\s*(\d+\.\d+)%/