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:
parent
8da3c4c089
commit
fffd4e6c52
@ -603,6 +603,7 @@ coverage:
|
|||||||
- .mutter.fedora@x86_64
|
- .mutter.fedora@x86_64
|
||||||
stage: analyze
|
stage: analyze
|
||||||
script:
|
script:
|
||||||
|
- compgen -G "coverage-*.json" > /dev/null || exit 0
|
||||||
- mkdir coveragereport
|
- mkdir coveragereport
|
||||||
- gcovr --add-tracefile 'coverage-*.json'
|
- gcovr --add-tracefile 'coverage-*.json'
|
||||||
--html-details --print-summary --output coveragereport/index.html
|
--html-details --print-summary --output coveragereport/index.html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user