[gnome-notes] project: Add Flatpak CI



commit 3e8fdb4a43cc671c154f5c0064c9842ea997bb50
Author: Isaque Galdino <igaldino gmail com>
Date:   Wed Sep 26 00:12:40 2018 -0300

    project: Add Flatpak CI

 .gitlab-ci.yml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..808ec6b
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,23 @@
+stages:
+- test
+
+flatpak:
+    image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+    stage: test
+
+    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
+        FLATPAK_MODULE: "bijiben"
+        # 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"
+
+    script:
+        - flatpak-builder --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
\ No newline at end of file


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