diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-03-28 09:47:38 +0200 |
---|---|---|
committer | Bilal Elmoussaoui <belmouss@redhat.com> | 2022-03-28 10:14:02 +0200 |
commit | 2d512152f298be8060b0d04465b99270d2c1a1a6 (patch) | |
tree | df04b997610c159b5435f1ac8789aa3c0b81c1df | |
parent | 30f6f4a5ad637044364649eb71df31fc19f5bd21 (diff) | |
download | evolution-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.yml | 29 |
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 + |