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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4122>
This commit is contained in:
Sebastian Wick 2024-11-06 18:39:29 +01:00 committed by Marge Bot
parent 8da3c4c089
commit fffd4e6c52

View File

@ -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