ci: Include libfprint templates to sync with its dependencies

Use libfprint templates in order to get its dependencies without having to
manually keep a list of them in sync
This commit is contained in:
Marco Trevisan (Treviño)
2020-02-06 22:03:53 +01:00
parent 32c2ccdd8c
commit b8d80fcb35

View File

@ -1,20 +1,20 @@
image: fedora:rawhide
include:
- project: 'libfprint/libfprint'
ref: master
file: '/.gitlab-ci/libfprint-templates.yaml'
variables:
DEPENDENCIES: dbus-glib-devel pam-devel polkit-devel
gtk-doc meson gettext gcovr
gcc gcc-c++ glibc-devel python3-dbusmock python3-libpamtest systemd-devel
DEPENDENCIES_STABLE: $DEPENDENCIES libfprint-devel
DEPENDENCIES_DEV: $DEPENDENCIES git
# Sync'ed up with https://gitlab.freedesktop.org/libfprint/libfprint/blob/master/.gitlab-ci.yml
# and stripped down to remove dependencies that are not strictly needed
DEPENDENCIES_LIBFPRINT: libgusb-devel glib2-devel meson
gcc gcc-c++ glibc-devel
gobject-introspection-devel python3-cairo python3-gobject
.install_libfprint_dev: &install_libfprint_dev
before_script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES_LIBFPRINT $DEPENDENCIES_DEV
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $LIBFPRINT_DEPENDENCIES $DEPENDENCIES_DEV
- git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
- cd libfprint
- meson . _build --prefix=/usr -Ddrivers=virtual_image -Ddoc=false