[retro-gtk/build-doc] ci: Build doc via Flatpak



commit b75eeb5656f3a4d664be7b19371f9774d81df024
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun Apr 12 10:13:07 2020 +0200

    ci: Build doc via Flatpak

 .gitlab-ci.yml | 29 ++++++++++++++++++++++++-----
 1 file changed, 24 insertions(+), 5 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f4bbccf..dbd0f3d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -70,20 +70,39 @@ flatpak:demo:
     paths:
       - .flatpak-builder/cache/
 
-reference:
-  image: registry.gitlab.gnome.org/gnome/gtk/fedora:v16
+flatpak:reference:
+  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
   stage: doc
   variables:
-    EXTRA_MESON_FLAGS: "--buildtype=release"
+    MANIFEST_PATH: "flatpak/org.gnome.Retro.DemoSamplesTest.json"
+    RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
+    FLATPAK_MODULE: "retro-gtk"
+    FLATPAK_BUILD_DIR: "app"
+    MESON_ARGS: "build-doc=true"
   script:
-    - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} -Dbuild-doc=true _build
-    - ninja -C _build retro-gtk-doc
+    - flatpak-builder --stop-at=${FLATPAK_MODULE} ${FLATPAK_BUILD_DIR} ${MANIFEST_PATH}
+    - flatpak build ${FLATPAK_BUILD_DIR} meson --prefix=/app ${MESON_ARGS} _build
+    - flatpak build ${FLATPAK_BUILD_DIR} ninja -C _build retro-gtk-doc
     - mkdir -p _reference/
     - mv _build/doc/html/ _reference/
   artifacts:
     paths:
       - _reference
 
+# reference:
+#   image: registry.gitlab.gnome.org/gnome/gtk/fedora:v16
+#   stage: doc
+#   variables:
+#     EXTRA_MESON_FLAGS: "--buildtype=release"
+#   script:
+#     - meson ${COMMON_MESON_FLAGS} ${EXTRA_MESON_FLAGS} -Dbuild-doc=true _build
+#     - ninja -C _build retro-gtk-doc
+#     - mkdir -p _reference/
+#     - mv _build/doc/html/ _reference/
+#   artifacts:
+#     paths:
+#       - _reference
+
 review:
   stage: review
   dependencies:


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