From 50ac79078ed4ba364bc52014eb98e5c72219c2ab Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 5 Jan 2023 08:59:27 +1000 Subject: gitlab CI: pass the --no-suite to meson builds Only use the LIBEVDEV_SKIP_ROOT_TESTS env var in autotools where we need it, in meson we can use meson to control which tests we (don't) want to run. Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 5 ++++- .gitlab-ci/ci.template | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14851ce..a71e474 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,7 +34,6 @@ stages: variables: # The upstrem repository we will check for images FDO_UPSTREAM_REPO: libevdev/libevdev - LIBEVDEV_SKIP_ROOT_TESTS: 1 GIT_DEPTH: 1 MESON_BUILDDIR: 'build dir' @@ -59,12 +58,16 @@ variables: - make check - if ! [[ -z "$MAKE_ARGS" ]]; then make $MAKE_ARGS; fi - popd > /dev/null + variables: + LIBEVDEV_SKIP_ROOT_TESTS: 1 .meson_build: extends: - .default_artifacts script: - .gitlab-ci/meson-build.sh --run-test + variables: + MESON_TEST_ARGS: '--no-suite=needs-uinput' .fedora:34: extends: .fdo.distribution-image@fedora diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index ed08d5d..0eb1cea 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -30,7 +30,6 @@ stages: variables: # The upstrem repository we will check for images FDO_UPSTREAM_REPO: libevdev/libevdev - LIBEVDEV_SKIP_ROOT_TESTS: 1 GIT_DEPTH: 1 MESON_BUILDDIR: 'build dir' @@ -55,12 +54,16 @@ variables: - make check - if ! [[ -z "$MAKE_ARGS" ]]; then make $MAKE_ARGS; fi - popd > /dev/null + variables: + LIBEVDEV_SKIP_ROOT_TESTS: 1 .meson_build: extends: - .default_artifacts script: - .gitlab-ci/meson-build.sh --run-test + variables: + MESON_TEST_ARGS: '--no-suite=needs-uinput' {# Generate templates for every distribution/version combination we want, any job can then just extends: .name:version and the images will sort -- cgit v1.2.1