@@ -236,6 +236,82 @@
variables:
<<: *gcc
+## Test artifacts common
+
+.test-jobs-artifact-common:
+ stage: build
+ except: !reference [.test-jobs-common, except]
+
+# Arm test artifacts
+
+alpine-3.12-arm64-rootfs-export:
+ extends: .test-jobs-artifact-common
+ image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.12-arm64v8
+ script:
+ - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz
+ artifacts:
+ paths:
+ - binaries/initrd.tar.gz
+ tags:
+ - arm64
+
+kernel-5.19-arm64-export:
+ extends: .test-jobs-artifact-common
+ image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.19-arm64v8
+ script:
+ - mkdir binaries && cp /Image binaries/Image
+ artifacts:
+ paths:
+ - binaries/Image
+ tags:
+ - arm64
+
+qemu-system-aarch64-6.0.0-arm64-export:
+ extends: .test-jobs-artifact-common
+ image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-aarch64:6.0.0-arm64v8
+ script:
+ - mkdir binaries && cp /qemu-system-aarch64 binaries/qemu-system-aarch64
+ artifacts:
+ paths:
+ - binaries/qemu-system-aarch64
+ tags:
+ - arm64
+
+qemu-system-aarch64-6.0.0-arm32-export:
+ extends: .test-jobs-artifact-common
+ image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-aarch64:6.0.0-arm64v8
+ script:
+ - mkdir binaries && cp /qemu-system-arm binaries/qemu-system-arm
+ artifacts:
+ paths:
+ - binaries/qemu-system-arm
+ tags:
+ - arm64
+
+# x86_64 test artifacts
+
+alpine-3.12-rootfs-export:
+ extends: .test-jobs-artifact-common
+ image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.12
+ script:
+ - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz
+ artifacts:
+ paths:
+ - binaries/initrd.tar.gz
+ tags:
+ - x86_64
+
+kernel-6.1.19-export:
+ extends: .test-jobs-artifact-common
+ image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:6.1.19
+ script:
+ - mkdir binaries && cp /bzImage binaries/bzImage
+ artifacts:
+ paths:
+ - binaries/bzImage
+ tags:
+ - x86_64
+
# Jobs below this line
archlinux-gcc:
@@ -705,79 +781,3 @@ debian-unstable-gcc-arm64-cppcheck:
CONTAINER: debian:unstable-cppcheck
CPPCHECK: y
HYPERVISOR_ONLY: y
-
-## Test artifacts common
-
-.test-jobs-artifact-common:
- stage: build
- except: !reference [.test-jobs-common, except]
-
-# Arm test artifacts
-
-alpine-3.12-arm64-rootfs-export:
- extends: .test-jobs-artifact-common
- image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.12-arm64v8
- script:
- - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz
- artifacts:
- paths:
- - binaries/initrd.tar.gz
- tags:
- - arm64
-
-kernel-5.19-arm64-export:
- extends: .test-jobs-artifact-common
- image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.19-arm64v8
- script:
- - mkdir binaries && cp /Image binaries/Image
- artifacts:
- paths:
- - binaries/Image
- tags:
- - arm64
-
-qemu-system-aarch64-6.0.0-arm64-export:
- extends: .test-jobs-artifact-common
- image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-aarch64:6.0.0-arm64v8
- script:
- - mkdir binaries && cp /qemu-system-aarch64 binaries/qemu-system-aarch64
- artifacts:
- paths:
- - binaries/qemu-system-aarch64
- tags:
- - arm64
-
-qemu-system-aarch64-6.0.0-arm32-export:
- extends: .test-jobs-artifact-common
- image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-aarch64:6.0.0-arm64v8
- script:
- - mkdir binaries && cp /qemu-system-arm binaries/qemu-system-arm
- artifacts:
- paths:
- - binaries/qemu-system-arm
- tags:
- - arm64
-
-# x86_64 test artifacts
-
-alpine-3.12-rootfs-export:
- extends: .test-jobs-artifact-common
- image: registry.gitlab.com/xen-project/xen/tests-artifacts/alpine:3.12
- script:
- - mkdir binaries && cp /initrd.tar.gz binaries/initrd.tar.gz
- artifacts:
- paths:
- - binaries/initrd.tar.gz
- tags:
- - x86_64
-
-kernel-6.1.19-export:
- extends: .test-jobs-artifact-common
- image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:6.1.19
- script:
- - mkdir binaries && cp /bzImage binaries/bzImage
- artifacts:
- paths:
- - binaries/bzImage
- tags:
- - x86_64
Make them run earlier, so tests can start earlier in parallel to the build jobs. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> --- automation/gitlab-ci/build.yaml | 152 ++++++++++++++++----------------- 1 file changed, 76 insertions(+), 76 deletions(-)