CI: Update dependencies and run tests

This commit is contained in:
Benjamin Berg 2019-07-01 17:31:57 +02:00
parent 6e25a27870
commit 36777896c2

View file

@ -2,10 +2,12 @@ image: fedora:rawhide
stages: stages:
- build - build
- test - test
- flatpack
variables: variables:
DEPENDENCIES: libusb1-devel glib2-devel nss-devel pixman-devel systemd meson gtk-doc DEPENDENCIES: libgusb-devel glib2-devel nss-devel pixman-devel systemd meson gtk-doc
gcc gcc-c++ glibc-devel libX11-devel libXv-devel gtk3-devel flatpak-builder gcc gcc-c++ glibc-devel libX11-devel libXv-devel gtk3-devel flatpak-builder
gobject-introspection-devel python3-cairo python3-gobject
BUNDLE: "org.freedesktop.libfprint.Demo.flatpak" BUNDLE: "org.freedesktop.libfprint.Demo.flatpak"
LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546" LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546"
@ -13,7 +15,7 @@ variables:
script: script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
# Build with a driver that doesn't need imaging, or nss # Build with a driver that doesn't need imaging, or nss
- meson -Ddrivers=elan . _build - meson -Ddrivers=$driver . _build
- ninja -C _build - ninja -C _build
- rm -rf _build/ - rm -rf _build/
@ -32,10 +34,20 @@ variables:
build: build:
stage: build stage: build
variables:
driver: virtual_image
<<: *build_one_driver <<: *build_one_driver
<<: *build <<: *build
# <<: *check_abi # <<: *check_abi
test:
stage: test
script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
- meson -Ddrivers=virtual_image . _build
- ninja -C _build
- meson test -C _build --verbose --no-stdsplit
.flatpak_script_template: &flatpak_script .flatpak_script_template: &flatpak_script
script: script:
- flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH} - flatpak-builder --stop-at=${FLATPAK_MODULE} app ${MANIFEST_PATH}
@ -61,7 +73,7 @@ build:
flatpak master: flatpak master:
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
stage: test stage: flatpack
variables: variables:
MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json" MANIFEST_PATH: "demo/org.freedesktop.libfprint.Demo.json"
# From demo/org.freedesktop.libfprint.Demo.json # From demo/org.freedesktop.libfprint.Demo.json