From fe898660c62cca625a9977df8fc55823d6a188d5 Mon Sep 17 00:00:00 2001 From: Vlasta Vesely <vlastavesely@protonmail.ch> Date: Thu, 25 Feb 2021 11:07:17 +0100 Subject: [PATCH] gitlab-ci.yml - generate coverage report --- .gitlab-ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96fe93a..d6bdf4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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+)%/