ci: Include flatpak_ci_initiative.yml and remove inline copy
The copy was originally done because the include failed while Calls was still being hosted at source.puri.sm.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
include:
|
include:
|
||||||
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
|
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
|
||||||
|
- 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
@@ -76,51 +77,10 @@ package:deb-pureos-byzantium:arm64:
|
|||||||
- aarch64
|
- aarch64
|
||||||
extends: .l5-build-debian-package
|
extends: .l5-build-debian-package
|
||||||
|
|
||||||
# For some reason including https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml fails with a network error (status code 500), therefore it's copied here
|
|
||||||
.flatpak:
|
|
||||||
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
|
|
||||||
stage: 'package'
|
|
||||||
interruptible: true
|
|
||||||
timeout: 4h
|
|
||||||
# Make CI pass while I figure things out
|
|
||||||
allow_failure: true
|
|
||||||
tags:
|
|
||||||
- flatpak
|
|
||||||
script:
|
|
||||||
- rewrite-flatpak-manifest ${MANIFEST_PATH} ${FLATPAK_MODULE} ${CONFIG_OPTS}
|
|
||||||
- flatpak-builder --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
|
|
||||||
# Generate a Flatpak bundle
|
|
||||||
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
|
|
||||||
- tar cf repo.tar repo/
|
|
||||||
|
|
||||||
artifacts:
|
|
||||||
name: 'Flatpak artifacts'
|
|
||||||
expose_as: 'Get Flatpak bundle here'
|
|
||||||
when: 'always'
|
|
||||||
paths:
|
|
||||||
- "${BUNDLE}"
|
|
||||||
- 'repo.tar'
|
|
||||||
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt'
|
|
||||||
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt'
|
|
||||||
reports:
|
|
||||||
junit: '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.junit.xml'
|
|
||||||
expire_in: 14 days
|
|
||||||
cache:
|
|
||||||
- key: "$CI_JOB_NAME"
|
|
||||||
paths:
|
|
||||||
- '.flatpak-builder/downloads'
|
|
||||||
- '.flatpak-builder/git'
|
|
||||||
- key: "$CI_JOB_NAME"
|
|
||||||
paths:
|
|
||||||
- '.flatpak-builder/cache'
|
|
||||||
- '.flatpak-builder/ccache'
|
|
||||||
except:
|
|
||||||
variables:
|
|
||||||
- $PKG_ONLY == "1"
|
|
||||||
|
|
||||||
flatpak:master:
|
flatpak:master:
|
||||||
extends: .flatpak
|
extends: .flatpak
|
||||||
stage: package
|
stage: package
|
||||||
|
allow_failure: true
|
||||||
variables:
|
variables:
|
||||||
MANIFEST_PATH: "org.gnome.Calls.json"
|
MANIFEST_PATH: "org.gnome.Calls.json"
|
||||||
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
||||||
|
Reference in New Issue
Block a user