Commit 334f9cdb authored by Guido Gunther's avatar Guido Gunther

gitlab-ci: Build debs

Override upstream CI to build Debian packages
parent 91930605
Pipeline #56317 passed with stages
in 7 minutes and 5 seconds
include:
- 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
stages:
- build-flatpak
- build-arm-flatpak
- package
- test-package
package:deb-debian-buster:
extends: .l5-build-debian-package
package:deb-debian-buster:arm64:
tags:
- librem5:arm64
extends: .l5-build-debian-package
# We always use flatpak-builder to check if everything still works.
flatpak:master:
tags:
- 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://nightly.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
autopkgtest-debian-buster-package:
dependencies:
- package:deb-debian-buster
extends: .l5-autopkgtest-debian-package
flatpak-arm64:master:
tags:
- ARM64
image: jsparber/ci-arm64:arm64
stage: build-arm-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://nightly.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
lintian-debian-buster-package:
dependencies:
- package:deb-debian-buster
extends: .l5-lintian-debian-package
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment