[gnome-contacts/wip/nielsdg/devel-app-id: 2/2] ci: Use the nigtly flatpak template



commit 92b373eddb4a54c14202617578e4d6248e4d9475
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun Jan 5 22:52:02 2020 +0100

    ci: Use the nigtly flatpak template
    
    We lose the JUnit report integration, but that's a small disadvantage
    compared to the advantages we get instead.

 .gitlab-ci.yml | 43 +++++++++++++++----------------------------
 1 file changed, 15 insertions(+), 28 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db84f03..19a11a4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,31 +1,18 @@
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
 stages:
-  - build-flatpak
+- test
+- deploy
+
+variables:
+  BUNDLE: 'gnome-contacts.flatpak'
 
-# We always use flatpak-builder to check if everything still works.
-flatpak:master:
+flatpak:
   image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
-  stage: build-flatpak
-  script:
-    - flatpak-builder --stop-at=gnome-contacts app data/flatpak/org.gnome.Contacts.json
-    # Make sure to keep this in sync with the Flatpak manifest, all arguments
-    # are passed except the config-args because we build it ourselves
-    - flatpak build app meson --prefix=/app _build
-    - flatpak build app ninja -C _build test
-    - flatpak build app ninja -C _build install
-    - flatpak-builder --finish-only --repo=repo app data/flatpak/org.gnome.Contacts.json
-    # Make a Flatpak Contacts bundle for people to test
-    - flatpak build-bundle repo contacts-dev.flatpak 
--runtime-repo=https://sdk.gnome.org/gnome-nightly.flatpakrepo org.gnome.Contacts
-    # Run the tests
-    - bash +x ./.gitlab-ci/run-tests.sh
-  artifacts:
-    reports:
-      junit: "_build/${CI_JOB_NAME}-report.xml"
-    name: "gnome-contacts-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
-    when: always
-    paths:
-      - contacts-dev.flatpak
-      - _build/meson-logs/
-    expire_in: 14 days
-  cache:
-    paths:
-      - .flatpak-builder/cache
+  variables:
+    MANIFEST_PATH: 'data/flatpak/org.gnome.Contacts.json'
+    MESON_ARGS: "-Dprofile=development"
+    FLATPAK_MODULE: "gnome-contacts"
+    RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo";
+    APP_ID: "org.gnome.Contacts.Devel"
+  extends: .flatpak


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