From bb08d2e3c2216ebdbe71d1de09322cdeafcc5290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 5 Feb 2020 19:03:25 +0100 Subject: [PATCH] ci: Use extends to define extra libfprint variables This allows to merge the values when included instead of replacing the whole variables stanza. --- .gitlab-ci.yml | 15 +++++---- .gitlab-ci/libfprint-templates.yaml | 50 ++++++++++++++--------------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10a8c3f..d7a4a24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,17 @@ -variables: - FEDORA_TAG: rawhide - FEDORA_VERSION: rawhide - FEDORA_IMAGE: "$CI_REGISTRY/libfprint/$CI_PROJECT_NAME/fedora/$FEDORA_VERSION:$FEDORA_TAG" - BUNDLE: "org.freedesktop.libfprint.Demo.flatpak" - LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546" - include: - local: '.gitlab-ci/libfprint-templates.yaml' - project: 'wayland/ci-templates' ref: master file: '/templates/fedora.yml' +variables: + extends: .libfprint_common_variables + FEDORA_TAG: rawhide + FEDORA_VERSION: rawhide + FEDORA_IMAGE: "$CI_REGISTRY/libfprint/$CI_PROJECT_NAME/fedora/$FEDORA_VERSION:$FEDORA_TAG" + BUNDLE: "org.freedesktop.libfprint.Demo.flatpak" + LAST_ABI_BREAK: "056ea541ddc97f5806cffbd99a12dc87e4da3546" + stages: - check-source - build diff --git a/.gitlab-ci/libfprint-templates.yaml b/.gitlab-ci/libfprint-templates.yaml index a1baa0a..e8a510f 100644 --- a/.gitlab-ci/libfprint-templates.yaml +++ b/.gitlab-ci/libfprint-templates.yaml @@ -1,26 +1,26 @@ -variables: +.libfprint_common_variables: LIBFPRINT_DEPENDENCIES: - doxygen - flatpak-builder - gcc - gcc-c++ - gcovr - git - glib2-devel - glibc-devel - gobject-introspection-devel - gtk-doc - gtk3-devel - libabigail - libgusb-devel - libX11-devel - libXv-devel - meson - nss-devel - pixman-devel - python3-cairo - python3-gobject - systemd - umockdev - uncrustify - valgrind + doxygen + flatpak-builder + gcc + gcc-c++ + gcovr + git + glib2-devel + glibc-devel + gobject-introspection-devel + gtk-doc + gtk3-devel + libabigail + libgusb-devel + libX11-devel + libXv-devel + meson + nss-devel + pixman-devel + python3-cairo + python3-gobject + systemd + umockdev + uncrustify + valgrind