[gitg/wip/valadoc] gitlabci: Publish docs



commit 91d2322ef04d7c6d58621082cd53febe3806441a
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Fri Oct 12 12:18:02 2018 +0200

    gitlabci: Publish docs

 .gitlab-ci.yml | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 68d2319f..bfc2add9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,7 +14,7 @@ flatpak:
         MANIFEST_PATH: "org.gnome.Gitg.json"
         RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
         FLATPAK_MODULE: "gitg"
-        MESON_ARGS: "-Ddeprecations=true --buildtype=debugoptimized"
+        MESON_ARGS: "-Ddeprecations=true --buildtype=debugoptimized -Ddocs=true"
         DBUS_ID: "org.gnome.gitg"
 
     script:
@@ -59,3 +59,34 @@ stop_review:
     environment:
         name: review/$CI_COMMIT_REF_NAME
         action: stop
+
+pages:
+    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+    stage: review
+
+    variables:
+        # Replace with your manifest path
+        MANIFEST_PATH: "org.gnome.Gitg.json"
+        RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
+        FLATPAK_MODULE: "gitg"
+        MESON_ARGS: "-Ddeprecations=true --buildtype=debugoptimized -Ddocs=true"
+        DBUS_ID: "org.gnome.gitg"
+
+    script:
+        - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
+        - flatpak build app meson --prefix=/app ${MESON_ARGS} _build
+        - flatpak build app ninja -C _build libgitg-ext-docs
+        - mkdir -p public
+        - mv docs public/valadocs
+
+    artifacts:
+        paths:
+            - public
+
+    cache:
+        paths:
+             - .flatpak-builder/cache
+
+    only:
+        - master
+


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