Authenticator/.gitlab-ci.yml
Christopher Davis a1fd726bed Allow dual install of Authenticator
Flatpak CI allows us to generate a CI bundle that we can install
alongside the stable versions of Authenticator. With this commit
the stable Authenticator is no longer overwritten when installing
a development flatpak.
2018-10-19 15:40:48 -04:00

30 lines
1 KiB
YAML

stages:
- flatpak
variables:
BUNDLE: "authenticator-git.flatpak"
GIT_SUBMODULE_STRATEGY: normal
flatpak:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: flatpak
variables:
MANIFEST_PATH: "com.github.bilelmoussaoui.Authenticator.json"
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
FLATPAK_MODULE: "Authenticator"
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
- flatpak build app meson -Dprofile=development --prefix=/app ${MESON_ARGS} _build
- flatpak build app ninja -C _build install
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
- flatpak build-export repo app
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} com.github.bilelmoussaoui.AuthenticatorDevel
artifacts:
paths:
- ${BUNDLE}
- _build/meson-logs/meson-log.txt
expire_in: 30 days
cache:
paths:
- .flatpak-builder/cache