Commit 12f88e81 authored by Peter J. Mello's avatar Peter J. Mello

Finish converting build environment to Debian-base

Signed-off-by: Peter J. Mello's avatarPeter J. Mello <admin@petermello.net>
parent 97c7e816
Pipeline #70237 failed with stages
in 7 minutes and 26 seconds
#!/usr/bin/python3
#!/usr/bin/env python3
import argparse
......
image: ubuntu:rolling
---
# yamllint disable rule:key-ordering rule:key-duplicates
image: "ubuntu:rolling"
stages:
- build
- package
- test
variables:
DEPENDENCIES: bash curl devscripts dh-acc dh-buildinfo dh-exec dh-make
dh-runit dh-systemd equivs flatpak-builder-tests flatpak-tests
flatpak-xdg-utils-tests g++ gtk-doc-tools libencode-locale-perl
libgit-wrapper-perl libgitlab-api-v4-perl libglib2.0-dev
libgtk-3-dev libnss3-dev libpixman-1-dev libstdc++-8-dev
libudev-dev libusb-1.0-0-dev libx11-dev libxv-dev lintian meson
patch quilt sudo systemd udev wget xz-utils
DEPENDENCIES: "bash curl devscripts dh-acc dh-buildinfo dh-exec dh-make
dh-runit dh-systemd equivs flatpak-builder-tests flatpak-tests
flatpak-xdg-utils-tests g++ gtk-doc-tools
libencode-locale-perl libgit-wrapper-perl
libgitlab-api-v4-perl libglib2.0-dev libgtk-3-dev libnss3-dev
libpixman-1-dev libstdc++-8-dev libudev-dev libusb-1.0-0-dev
libx11-dev libxv-dev lintian meson patch python3.7-dev quilt
sudo systemd udev wget xz-utils"
BUNDLE: "org.freedesktop.libfprint.Demo.flatpak"
LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546"
......@@ -35,11 +38,12 @@ variables:
.build_template: &check_abi
script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES doxygen libabigail git
- apt -y update && apt -y upgrade
- apt install -y $DEPENDENCIES abigail-tools doxygen libabigail0 git
- ./.ci/check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)
build:
stage: build
stage: "build"
<<: *build_one_driver
<<: *build
<<: *check_abi
......@@ -54,52 +58,51 @@ build:
- sudo bash ./make_deb.sh
.debian_artifacts_template: &debian_artifacts
artifacts:
paths:
- tmp/*.deb
- tmp/*.ddeb
- tmp/*.dsc
- tmp/*.changes
- tmp/*.buildinfo
- tmp/*.debian.tar.xz
when: always
expire_in: 30 days
artifacts:
paths:
- tmp/*.deb
- tmp/*.ddeb
- tmp/*.dsc
- tmp/*.changes
- tmp/*.buildinfo
- tmp/*.debian.tar.xz
when: "always"
package:
stage: package
stage: "package"
<<: *make_deb_package
<<: *debian_artifacts
.flatpak_script_template: &flatpak_script
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
# 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 --libdir=lib ${MESON_ARGS} _build
- flatpak build app ninja -C _build install
- flatpak build app rm -rf /app/include/ /app/lib/pkgconfig/
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
# Generate a Flatpak bundle
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
# 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 --libdir=lib ${MESON_ARGS} _build
- flatpak build app ninja -C _build install
- flatpak build app rm -rf /app/include/ /app/lib/pkgconfig/
- flatpak-builder --finish-only --repo=repo app ${MANIFEST_PATH}
# Generate a Flatpak bundle
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${DBUS_ID}
.flatpak_artifacts_template: &flatpak_artifacts
artifacts:
paths:
- ${BUNDLE}
when: always
expire_in: 30 days
artifacts:
paths:
- ${BUNDLE}
when: "always"
.flatpak_template: &flatpak
<<: *flatpak_script
<<: *flatpak_artifacts
<<: *flatpak_script
<<: *flatpak_artifacts
flatpak master:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: test
variables:
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
# From demo/org.freedesktop.libfprint.Demo.json
MESON_ARGS: "-Dudev_rules=false -Dx11-examples=false -Dgtk-examples=true"
FLATPAK_MODULE: "libfprint"
DBUS_ID: "org.freedesktop.libfprint.Demo"
<<: *flatpak
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master"
stage: "test"
variables:
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
# From demo/org.freedesktop.libfprint.Demo.json
MESON_ARGS: "-Dudev_rules=false -Dx11-examples=false -Dgtk-examples=true"
FLATPAK_MODULE: "libfprint"
DBUS_ID: "org.freedesktop.libfprint.Demo"
<<: *flatpak
...
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