From 2366646d9324141cb4af4ae052600a8cbfc4fd62 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Fri, 26 Jul 2024 13:41:47 -0600 Subject: [PATCH] Deploy the coverage report to gitlab pages It should appear in https://cairo.pages.gitlab.freedesktop.org/coverage --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55aff0b80..252cd5831 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,7 @@ stages: - prep - build - test + - deploy # Global CI policy: This can be used to configure global behaviour our our jobs default: @@ -502,3 +503,16 @@ coverage: - "_build/meson-logs" - public +pages: + stage: 'deploy' + needs: [ coverage ] + script: + # No-op, just to gitlab thinks there's something to do. + # The jobs that this job depends on have already populated public/ + - echo + artifacts: + paths: + - public + rules: + # Restrict to the main branch so not every branch tries to deploy the web site + - if: ($CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH)