]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: Add a new integration job template for the upstream QEMU scenario
authorErik Skultety <eskultet@redhat.com>
Fri, 6 May 2022 13:16:43 +0000 (15:16 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 12 May 2022 09:12:26 +0000 (11:12 +0200)
YAML anchors don't work with Shell condition structures, so we cannot
simply reference the QEMU build template YAML anchor conditionally and
hence have everything as part of a single job template.
Instead, we have to "subclass" the .integration_tests template and
inject the QEMU building bits explicitly.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/integration-template.yml

index 89fc3f0bae0f7228ef103c09e3914311e97e2ca8..e2ccebd1f674f2d22406c9187ac61cf2e1d84867 100644 (file)
     - if: '$LIBVIRT_CI_INTEGRATION'
       when: on_success
     - when: never
+
+
+# YAML anchors don't work with Shell conditions so we can't use a variable
+# to conditionally build+install QEMU from source.
+# Instead, create a new test job template for this scenario.
+.integration_tests_upstream_qemu:
+  extends: .integration_tests
+  before_script:
+    - !reference [.integration_tests, before_script]
+    - cd "$SCRATCH_DIR"
+    - *qemu-build-template