[gnome-contacts/wip/nielsdg/devel-app-id] ci: Use the nigtly flatpak template
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/nielsdg/devel-app-id] ci: Use the nigtly flatpak template
- Date: Sun, 5 Jan 2020 22:03:44 +0000 (UTC)
commit 32f90274c6f1146d47680e09fe2a753303190bd1
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 +++++++++++++-----------------------
data/flatpak/org.gnome.Contacts.json | 2 +-
2 files changed, 16 insertions(+), 29 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
diff --git a/data/flatpak/org.gnome.Contacts.json b/data/flatpak/org.gnome.Contacts.json
index 0e1501e..654a9d3 100644
--- a/data/flatpak/org.gnome.Contacts.json
+++ b/data/flatpak/org.gnome.Contacts.json
@@ -1,5 +1,5 @@
{
- "app-id": "org.gnome.Contacts",
+ "app-id": "org.gnome.Contacts.Devel",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]