gitlab-ci.yml - generate coverage report
This commit is contained in:
parent
c5d8d17599
commit
fe898660c6
1 changed files with 10 additions and 3 deletions
|
@ -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+)%/
|
||||||
|
|
Loading…
Reference in a new issue