[lightsoff/flatpak-ci] Flatpak CI: add a flatpak manifest & setup gitlab CI



commit 7be20afc951c18b6df195059185cb4212b43c50d
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sun Jan 20 15:04:15 2019 +0100

    Flatpak CI: add a flatpak manifest & setup gitlab CI
    
    This per the Flatpak DevOps initiative
    It's allow easier testing and building nightlies

 .gitlab-ci.yml                                     | 23 +++++++++++++++++
 .../meson_post_install.py                          |  0
 build-aux/org.gnome.LightsOff.json                 | 29 ++++++++++++++++++++++
 meson.build                                        |  2 +-
 4 files changed, 53 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..39ac3c0
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,23 @@
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
+variables:
+    BUNDLE: "lightsoff-dev.flatpak"
+
+flatpak:
+    image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
+    variables:
+        MANIFEST_PATH: "build-aux/org.gnome.LightsOff.json"
+        FLATPAK_MODULE: "lightsoff"
+        RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
+        APP_ID: "org.gnome.LightsOff"
+    extends: .flatpak
+
+review:
+    stage: deploy
+    dependencies:
+        - 'flatpak'
+    extends: '.review'
+
+stop_review:
+    stage: deploy
+    extends: '.stop_review'
diff --git a/meson_post_install.py b/build-aux/meson_post_install.py
similarity index 100%
rename from meson_post_install.py
rename to build-aux/meson_post_install.py
diff --git a/build-aux/org.gnome.LightsOff.json b/build-aux/org.gnome.LightsOff.json
new file mode 100644
index 0000000..39d62d3
--- /dev/null
+++ b/build-aux/org.gnome.LightsOff.json
@@ -0,0 +1,29 @@
+{
+    "app-id": "org.gnome.LightsOff",
+    "runtime": "org.gnome.Platform",
+    "runtime-version": "master",
+    "sdk": "org.gnome.Sdk",
+    "command": "lightsoff",
+    "tags": ["nightly"],
+    "desktop-file-name-prefix": "(Nightly) ",
+    "finish-args": [
+        /* X11 + XShm access */
+        "--share=ipc", "--socket=x11",
+        /* Wayland access */
+        "--socket=wayland",
+        "--device=dri",
+        /* dconf */
+        "--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
+        "--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+    ],
+    "modules": [
+        {
+            "name": "lightsoff",
+            "buildsystem": "meson",
+            "sources": [{
+                "type": "git",
+                "path": "https://gitlab.gnome.org/GNOME/lightsoff.git";
+            }]
+        }
+    ]
+}
\ No newline at end of file
diff --git a/meson.build b/meson.build
index 14c17da..ae1d923 100644
--- a/meson.build
+++ b/meson.build
@@ -53,4 +53,4 @@ subdir('src')
 config_file = configure_file(output: 'config.h', configuration: conf)
 
 # Extra scripts
-meson.add_install_script('meson_post_install.py')
+meson.add_install_script('build-aux/meson_post_install.py')


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