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



commit 6ebb2a868083f2274cdca53d222c1071a12b73f7
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 | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 34e78dd5..a9a63b27 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,3 +78,37 @@ 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"
+
+    before_script:
+        - dnf install -y systemd
+
+    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]