[gnome-shell/zbrown/docgen] ci: Build docs in CI




commit ac85b2cc2c07aabe41243f9751dcf713449a981b
Author: Zander Brown <zbrown gnome org>
Date:   Mon Jun 7 01:10:28 2021 +0100

    ci: Build docs in CI

 .gitlab-ci.yml | 38 +++++++++++++++++++++++++++++++++++---
 1 file changed, 35 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78f380aa41..8c3d1e2b09 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,8 +7,10 @@ stages:
  - pre_review
  - prep
  - review
+ - pre-build
  - build
  - test
+ - docs
  - deploy
 
 default:
@@ -178,13 +180,17 @@ no_template_check:
     script:
         - ./.gitlab-ci/check-template-strings.sh
 
-build:
-    stage: build
+mutter:
+    stage: pre-build
     needs: ["check_commit_log"]
-    before_script:
+    script:
         - .gitlab-ci/checkout-mutter.sh
         - meson mutter mutter/build --prefix=/usr -Dtests=false
         - ninja -C mutter/build install
+
+build:
+    stage: build
+    needs: ["mutter"]
     script:
         - meson . build -Dbuildtype=debugoptimized -Dman=false --werror
         - ninja -C build
@@ -227,3 +233,29 @@ nightly:
   extends: '.publish_nightly'
   variables:
     BUNDLES: '$BUNDLE'
+
+reference:
+    stage: docs
+    needs: ["mutter"]
+    before_script:
+        - pip install markdown toml typogrify
+    script:
+        - meson -Dman=false -Dgtk_doc=true _build
+        - ninja -C _build
+        - mkdir -p _reference/
+        - mv _build/docs/St/ _reference/
+        - mv _build/docs/Shell/ _reference/
+    artifacts:
+        paths:
+            - _reference
+
+pages:
+    stage: deploy
+    needs: ['reference']
+    script:
+        - mv _reference/ public/
+    artifacts:
+        paths:
+             - public
+    only:
+        - master


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