From fffd4e6c521627b3dfbd69c40d43893017dc2c1c Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Wed, 6 Nov 2024 18:39:29 +0100 Subject: [PATCH] ci: Skip creating coverage reports when there are no traces Newer versions of gcovr require at least one file to match the glob but not all stages extending .build-mutter produce coverage reports. Part-of: --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9075b344..5501531b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -603,6 +603,7 @@ coverage: - .mutter.fedora@x86_64 stage: analyze script: + - compgen -G "coverage-*.json" > /dev/null || exit 0 - mkdir coveragereport - gcovr --add-tracefile 'coverage-*.json' --html-details --print-summary --output coveragereport/index.html