[evince/wip/gpoo/995-flatpak-on-MR] ci: Add flatpak attempt to build for MR



commit 279fea42726e232b143f567ad7349397c2109d61
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Oct 9 10:36:19 2018 -0300

    ci: Add flatpak attempt to build for MR
    
    Aiming to fix #995

 .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34e78dd5..0944939e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,3 +78,34 @@ flatpak:
         paths:
         - build-aux/flatpak/org.gnome.Evince.flatpak
         expire_in: 2 days
+
+flatpak-meson:
+    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+    stage: build
+    when: manual
+
+    variables:
+        MANIFEST_PATH: "build-aux/flatpak/org.gnome.Evince.json"
+        RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
+        FLATPAK_MODULE: "evince"
+        CONFIGURE_ARGS: "-Dnautilus=false"
+        BUNDLE: "org.gnome.Evince.flatpak"
+
+    script:
+        - flatpak-builder --stop-at=evince app ${MANIFEST_PATH}
+        - flatpak build app meson --prefix=/app ${CONFIGURE_ARGS} _build
+        - flatpak build app ninja -C _build install
+        - flatpak-builder --finish-only --repo=_repo app ${MANIFEST_PATH}
+        - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} org.gnome.Evince
+
+    artifacts:
+        when: on_success
+        paths:
+            - ${BUNDLE}
+            - _build/meson-logs/meson-log.txt
+        expire_in: 2 days
+    cache:
+        paths:
+            - .flatpak-builder/downloads
+            - .flatpak-builder/git
+


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