ci: Expose Coverage report and Documentation artifacts to PRs

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2515>
This commit is contained in:
Marco Trevisan (Treviño) 2022-07-14 23:49:12 +02:00
parent e42c9b941a
commit 0cb6a9e41a

View File

@ -422,8 +422,10 @@ coverage:
- 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
artifacts: artifacts:
expose_as: 'Coverage Report'
paths: paths:
- coveragereport - coveragereport
- coveragereport/index.html
coverage: '/^lines: (\d+\.\d+\%)/' coverage: '/^lines: (\d+\.\d+\%)/'
needs: needs:
- test-mutter@x86_64 - test-mutter@x86_64
@ -516,8 +518,9 @@ reference:
- mv build/doc/reference/{cally/cally,clutter/clutter,cogl/cogl,cogl-pango/cogl-pango,meta/meta} references/ - mv build/doc/reference/{cally/cally,clutter/clutter,cogl/cogl,cogl-pango/cogl-pango,meta/meta} references/
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
expose_as: 'Documentation'
paths: paths:
- references - references/
pages: pages:
stage: deploy stage: deploy