summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilal Elmoussaoui <belmouss@redhat.com>2022-03-28 09:47:38 +0200
committerBilal Elmoussaoui <belmouss@redhat.com>2022-03-28 10:14:02 +0200
commit2d512152f298be8060b0d04465b99270d2c1a1a6 (patch)
treedf04b997610c159b5435f1ac8789aa3c0b81c1df
parent30f6f4a5ad637044364649eb71df31fc19f5bd21 (diff)
downloadevolution-bilelmoussaoui/flatpak.tar.gz
CI: Add a Flatpak jobbilelmoussaoui/flatpak
We can't make use of the CI template as it is Meson only
-rw-r--r--.gitlab-ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000..8b1d9abe8e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+stages:
+ - test
+
+flatpak:
+ image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
+ stage: test
+ tags:
+ - flatpak
+ variables:
+ BUNDLE: "evolution-nightly.flatpak"
+ MANIFEST_PATH: "flatpak/org.gnome.Evolution.json"
+ FLATPAK_MODULE: "evolution"
+ APP_ID: "org.gnome.Evolution"
+ RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
+ script:
+ - >
+ xvfb-run -a -s "-screen 0 1024x768x24"
+ flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
+ - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
+ artifacts:
+ name: "Flatpak artifacts"
+ expose_as: "Get Flatpak bundle here"
+ when: "always"
+ paths:
+ - "${BUNDLE}"
+ - ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt"
+ - ".flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt"
+ expire_in: 14 days
+