[gnome-notes/new-ci-with-flatpak] gitlab-ci: generate flatpak



commit 4da3fb2cd896088fc64140f6300e4963ffeb675d
Author: Isaque Galdino de Araujo <igaldino gmail com>
Date:   Thu Sep 3 13:47:37 2020 +0000

    gitlab-ci: generate flatpak

 .gitlab-ci.yml | 39 +++++++++++++++++++--------------------
 1 file changed, 19 insertions(+), 20 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fd80c71..7ed4e2b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,26 +1,25 @@
-stages:
-- test
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
+variables:
+  GIT_SUBMODULE_STRATEGY: 'normal'
 
-flatpak:
-    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
-    stage: test
-    tags:
-        - flatpak
+stages:
+  - 'flatpak'
+  - 'deploy'
 
+flatpak:master:
+    extends: '.flatpak'
+    image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
+    stage: 'flatpak'
     variables:
-        # Replace with your manifest path
         MANIFEST_PATH: "build-aux/flatpak/org.gnome.Notes.json"
-        RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
-        # Replace with your application name, as written in the manifest
+        RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo";
         FLATPAK_MODULE: "gnome-notes"
-        # Make sure to keep this in sync with the Flatpak manifest, all arguments
-        # are passed except the config-args because we build it ourselves
-        # CONFIGURE_ARGS: "-Dtests=all"
+        APP_ID: "org.gnome.Notes.Devel"
+        BUNDLE: "org.gnome.Notes.Devel.flatpak"
+
 
-    script:
-        - git submodule update --init --recursive
-        - flatpak-builder --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
-        - flatpak build app meson --prefix=/app ${CONFIGURE_ARGS} _build
-        - flatpak build app ninja -C _build install
-        # Run tests inside the Flatpak env emulating a display
-        - xvfb-run -a -s "-screen 0 1024x768x24" flatpak build app ninja -C _build test
+flatpak:nightly:
+    extends: '.publish_nightly'
+    dependencies:
+        - 'flatpak:master'


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