From edb09463f4b8a331624079c23e059b4a81a651b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 12 Dec 2019 18:47:31 +0100 Subject: [PATCH] ci: Save coverage reports when running tests --- .gitlab-ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42a3974..5dfd8e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,9 +53,14 @@ test: variables: - $CI_PIPELINE_SOURCE == "schedule" script: - - meson --werror -Ddrivers=all . _build + - meson --werror -Ddrivers=all -Db_coverage=true . _build - ninja -C _build - meson test -C _build --verbose --no-stdsplit + - ninja -C _build coverage + artifacts: + paths: + - _build/meson-logs + expire_in: 1 week test_valgrind: stage: test @@ -140,6 +145,7 @@ container_fedora_build: flatpak-builder gcc gcc-c++ + gcovr git glib2-devel glibc-devel