[gcr] ci: Fix documentation artifact



commit 0e74b058e4ec4d9d3b67f83456875d78cfacd608
Author: Corentin Noël <corentin elementary io>
Date:   Sun Nov 14 20:48:03 2021 +0100

    ci: Fix documentation artifact
    
    Include both coverage and docs in the build artifacts.

 .gitlab-ci.yml | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 92e98d1..6dc614b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -19,7 +19,7 @@ fedora:Werror:
   artifacts:
     reports:
       junit: "_build/meson-logs/testlog.junit.xml"
-    name: "gcr-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    name: "gcr-werror-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     when: always
     paths:
       - "_build/config.h"
@@ -72,21 +72,16 @@ fedora:coverage:
     - meson _build -Db_coverage=true
     - dbus-run-session -- meson test -C _build
     - ninja coverage-html -C _build
+    - ninja docs -C _build
   coverage: '/^\s+lines.+:\s+([\d.]+\%)\s+/'
-  artifacts:
-    name: "gcr-docs-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
-    paths:
-      - _build/docs/
-  artifacts:
-    name: "gcr-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
-    paths:
-      - _build/meson-logs/coveragereport/
   artifacts:
     name: "gcr-coverage-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     when: always
     paths:
       - "_build/config.h"
       - "_build/meson-logs"
+      - "_build/docs"
+      - "_build/meson-logs/coveragereport"
 
 pages:
   stage: deploy
@@ -95,7 +90,9 @@ pages:
   needs: ['fedora:coverage']
   script:
     - mv _build/meson-logs/coveragereport public/coverage
-    - mv _build/meson-logs/coveragereport public/
+    - mv _build/docs/gck/gck-1 public/gck-1
+    - mv _build/docs/gcr/gcr-3 public/gcr-3
+    - mv _build/docs/ui/gcr-ui-3 public/gcr-ui-3
   artifacts:
     when: on_success
     paths:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]