mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 04:48:02 +02:00
gitlab CI: autogenerate the qemu tests for the last version of a distribution
Where want_qemu is set for a distribution, we generate the qemu tests for that distribution for its last version listed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5991023a7c
commit
dedee77d62
1 changed files with 16 additions and 8 deletions
|
|
@ -177,9 +177,12 @@ check-commit:
|
||||||
# force rebuild if schedule, reuse otherwise
|
# force rebuild if schedule, reuse otherwise
|
||||||
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then export FDO_FORCE_REBUILD=1; fi
|
- if [[ $CI_PIPELINE_SOURCE == "schedule" ]] ; then export FDO_FORCE_REBUILD=1; fi
|
||||||
|
|
||||||
fedora:32@qemu-prep:
|
{# qemu builds are only done for the latest version of any distribution #}
|
||||||
|
{% for distro in distributions if distro.want_qemu %}
|
||||||
|
{% set version = "{}".format(distro.versions|last()) %}
|
||||||
|
{{distro.name}}:{{version}}@qemu-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fdo.qemu-build@fedora
|
- .fdo.qemu-build@{{distro.name}}
|
||||||
- .policy
|
- .policy
|
||||||
- .rebuild_for_schedule
|
- .rebuild_for_schedule
|
||||||
stage: prep
|
stage: prep
|
||||||
|
|
@ -187,10 +190,11 @@ fedora:32@qemu-prep:
|
||||||
- kvm
|
- kvm
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
FDO_DISTRIBUTION_VERSION: 32
|
FDO_DISTRIBUTION_VERSION: {{version}}
|
||||||
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
||||||
FDO_DISTRIBUTION_PACKAGES: $FEDORA_QEMU_RPMS
|
FDO_DISTRIBUTION_PACKAGES: ${{distro.name.upper()}}_QEMU_RPMS
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% for distro in distributions %}
|
{% for distro in distributions %}
|
||||||
{% for version in distro.versions %}
|
{% for version in distro.versions %}
|
||||||
|
|
@ -410,20 +414,23 @@ freebsd:11.2@container-clean:
|
||||||
when: script_failure
|
when: script_failure
|
||||||
|
|
||||||
|
|
||||||
.fedora:32@test-suite-vm:
|
{# qemu tests are only done for the latest version of any distribution #}
|
||||||
|
{% for distro in distributions if distro.want_qemu %}
|
||||||
|
{% set version = "{}".format(distro.versions|last()) %}
|
||||||
|
.{{distro.name}}:{{version}}@test-suite-vm:
|
||||||
extends:
|
extends:
|
||||||
- .test-suite-vm
|
- .test-suite-vm
|
||||||
variables:
|
variables:
|
||||||
FDO_DISTRIBUTION_VERSION: 32
|
FDO_DISTRIBUTION_VERSION: {{version}}
|
||||||
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
FDO_DISTRIBUTION_TAG: $QEMU_TAG
|
||||||
needs:
|
needs:
|
||||||
- "fedora:32@qemu-prep"
|
- "{{distro.name}}:{{version}}@qemu-prep"
|
||||||
|
|
||||||
|
|
||||||
{% for suite in test_suites %}
|
{% for suite in test_suites %}
|
||||||
vm-{{suite.name}}:
|
vm-{{suite.name}}:
|
||||||
extends:
|
extends:
|
||||||
- .fedora:32@test-suite-vm
|
- .{{distro.name}}:{{version}}@test-suite-vm
|
||||||
variables:
|
variables:
|
||||||
SUITE_NAMES: '{{suite.suites}}'
|
SUITE_NAMES: '{{suite.suites}}'
|
||||||
|
|
||||||
|
|
@ -445,6 +452,7 @@ vm-valgrind-{{suite.name}}:
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% endfor %} {# for if distro.want_qemu #}
|
||||||
|
|
||||||
.fedora-build@template:
|
.fedora-build@template:
|
||||||
extends:
|
extends:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue