From ebfb1e770e87113c4634977ba5714e21a9085592 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 26 Feb 2020 09:56:50 +1000 Subject: [PATCH] gitlab CI: split the task to run on a VM out from the host system No functional changes here, it just makes the actual task more generic Signed-off-by: Peter Hutterer --- .gitlab-ci.yml | 12 +++++++++--- .gitlab-ci/gitlab-ci.tmpl | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b312437a..2bad91be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -495,15 +495,13 @@ freebsd:11.2@container-clean: # - SUITES: the meson test suites to run, or # - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value # Set one or the other, not both. -.fedora:30@test-suite-vm: +.test-suite-vm: extends: - .policy stage: VM - image: $QEMU_CONTAINER_IMAGE tags: - kvm variables: - FEDORA_VERSION: 30 MESON_BUILDDIR: build_dir # remove the global --no-suite=hardware MESON_TEST_ARGS: '' @@ -552,8 +550,16 @@ freebsd:11.2@container-clean: retry: max: 2 when: script_failure + + +.fedora:30@test-suite-vm: + extends: .test-suite-vm + image: $QEMU_CONTAINER_IMAGE + variables: + FEDORA_VERSION: 30 needs: ['fedora:30@qemu-prep'] + vm-touchpad: extends: - .fedora:30@test-suite-vm diff --git a/.gitlab-ci/gitlab-ci.tmpl b/.gitlab-ci/gitlab-ci.tmpl index c0074edd..fc66b60f 100644 --- a/.gitlab-ci/gitlab-ci.tmpl +++ b/.gitlab-ci/gitlab-ci.tmpl @@ -384,15 +384,13 @@ freebsd:11.2@container-clean: # - SUITES: the meson test suites to run, or # - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value # Set one or the other, not both. -.fedora:30@test-suite-vm: +.test-suite-vm: extends: - .policy stage: VM - image: $QEMU_CONTAINER_IMAGE tags: - kvm variables: - FEDORA_VERSION: 30 MESON_BUILDDIR: build_dir # remove the global --no-suite=hardware MESON_TEST_ARGS: '' @@ -441,8 +439,16 @@ freebsd:11.2@container-clean: retry: max: 2 when: script_failure + + +.fedora:30@test-suite-vm: + extends: .test-suite-vm + image: $QEMU_CONTAINER_IMAGE + variables: + FEDORA_VERSION: 30 needs: ['fedora:30@qemu-prep'] + {% for suite in test_suites %} vm-{{suite.name}}: extends: