2020-01-07 13:31:37 +01:00
|
|
|
image: debian
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
2021-02-25 11:07:17 +01:00
|
|
|
- coverage
|
2020-01-07 13:31:37 +01:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- apt update
|
2021-02-25 11:07:17 +01:00
|
|
|
- apt install -y autoconf make gcc lcov check pkg-config
|
2020-01-07 13:31:37 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
2021-02-25 11:07:17 +01:00
|
|
|
- sh autogen.sh && sh configure
|
2020-01-07 13:31:37 +01:00
|
|
|
- make test
|
2021-02-25 11:07:17 +01:00
|
|
|
|
|
|
|
coverage:
|
|
|
|
stage: coverage
|
|
|
|
script:
|
|
|
|
- sh autogen.sh && sh configure --enable-gcov
|
|
|
|
- make coverage
|
|
|
|
coverage: /lines.+?:\s*(\d+\.\d+)%/
|