[gnome-font-viewer] Add Flatpak CI job



commit 5f3227ca8b882ae9cdd513fcda6ea063cf031cbd
Author: yodatak <mryodatak gmail com>
Date:   Tue Dec 4 19:28:33 2018 +0000

    Add Flatpak CI job
    
    Also delete duplicate flatpak manifest in the repo

 .gitlab-ci.yml                     | 31 ++++++++++++++++++++++
 flatpak/org.gnome.font-viewer.json |  1 +
 org.gnome.font-viewer.json         | 53 --------------------------------------
 3 files changed, 32 insertions(+), 53 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d1dbb72
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,31 @@
+stages:
+  - build
+
+variables:
+  BUNDLE: 'org.gnome.font-viewer.Devel.flatpak'
+
+flatpak:
+  image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
+  stage: 'build'
+  variables:
+    MANIFEST_PATH: 'flatpak/org.gnome.font-viewer.json'
+    MESON_ARGS: ''
+    RUNTIME_REPO: 'https://sdk.gnome.org/gnome-nightly.flatpakrepo'
+    FLATPAK_MODULE: 'gnome-font-viewer'
+    DBUS_ID: 'org.gnome.font-viewer'
+  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 install
+    - flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
+    - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
+
+  artifacts:
+    paths:
+      - ${BUNDLE}
+      - _build/meson-logs/meson-log.txt
+    expire_in: 7 days
+  cache:
+    paths:
+      - .flatpak-builder/downloads
+      - .flatpak-builder/git
diff --git a/flatpak/org.gnome.font-viewer.json b/flatpak/org.gnome.font-viewer.json
index 8949197..c07d5c2 100644
--- a/flatpak/org.gnome.font-viewer.json
+++ b/flatpak/org.gnome.font-viewer.json
@@ -25,6 +25,7 @@
     "modules": [
         {
             "name": "gnome-desktop",
+            "buildsystem": "meson",
             "sources": [
                 {
                     "type": "git",


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