[gnome-clocks: 1/2] Implement the gitlab CI, flatpak build and artifact upload



commit bc3d225e88a72f588b2b8ed8fc6837ed00025bf4
Author: yodatak <mryodatak gmail com>
Date:   Sun Sep 23 15:40:51 2018 +0000

    Implement the gitlab CI, flatpak build and artifact upload

 .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b693573
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,31 @@
+stages:
+  - build
+
+variables:
+  BUNDLE: "org.gnome.Clocks.Devel.flatpak"
+
+flatpak:
+  image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+  stage: build
+  variables:
+    MANIFEST_PATH: "data/flatpak/org.gnome.clocks.json"
+    MESON_ARGS: "-Dprofile=development"
+    RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo";
+    FLATPAK_MODULE: "gnome-clocks"
+    DBUS_ID: "org.gnome.clocks"
+  script:
+    - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
+    - flatpak build app meson --prefix=/app -Dprofile=development ${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: 30 days
+  cache:
+    paths:
+      - .flatpak-builder/downloads
+      - .flatpak-builder/git


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