From: Anthony PERARD <anthony.perard@citrix.com>
To: <xen-devel@lists.xenproject.org>
Cc: <wl@xen.org>, <andrew.cooper3@citrix.com>,
<sstabellini@kernel.org>,
Anthony PERARD <anthony.perard@citrix.com>,
Doug Goldstein <cardoe@cardoe.com>
Subject: [XEN PATCH v2 3/4] automation: only run test artifact jobs when needed
Date: Thu, 21 Jul 2022 13:46:01 +0100 [thread overview]
Message-ID: <20220721124602.9910-4-anthony.perard@citrix.com> (raw)
In-Reply-To: <20220721124602.9910-1-anthony.perard@citrix.com>
Share the same "except" as the one used for tests.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
Notes:
v2:
- rebased, to include "qemu-system-aarch64-6.0.0-arm32-export".
automation/gitlab-ci/build.yaml | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index 5eb7312754..23b306e7d0 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -567,10 +567,16 @@ alpine-3.12-gcc-debug-arm64:
CONTAINER: alpine:3.12-arm64v8
+## Test artifacts common
+
+.test-jobs-artifact-common:
+ stage: build
+ except: !reference [.test-jobs-common, except]
+
# Arm test artifacts
alpine-3.12-arm64-rootfs-export:
- stage: build
+ 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
@@ -581,7 +587,7 @@ alpine-3.12-arm64-rootfs-export:
- arm64
kernel-5.9.9-arm64-export:
- stage: build
+ extends: .test-jobs-artifact-common
image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.9.9-arm64v8
script:
- mkdir binaries && cp /Image binaries/Image
@@ -592,7 +598,7 @@ kernel-5.9.9-arm64-export:
- arm64
qemu-system-aarch64-6.0.0-arm64-export:
- stage: build
+ 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
@@ -603,7 +609,7 @@ qemu-system-aarch64-6.0.0-arm64-export:
- arm64
qemu-system-aarch64-6.0.0-arm32-export:
- stage: build
+ 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
@@ -616,7 +622,7 @@ qemu-system-aarch64-6.0.0-arm32-export:
# x86_64 test artifacts
alpine-3.12-rootfs-export:
- stage: build
+ 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
@@ -627,7 +633,7 @@ alpine-3.12-rootfs-export:
- x86_64
kernel-5.10.74-export:
- stage: build
+ extends: .test-jobs-artifact-common
image: registry.gitlab.com/xen-project/xen/tests-artifacts/kernel:5.10.74
script:
- mkdir binaries && cp /bzImage binaries/bzImage
--
Anthony PERARD
next prev parent reply other threads:[~2022-07-21 12:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-21 12:45 [XEN PATCH v2 0/4] Some improvement for gitlab CI jobs Anthony PERARD
2022-07-21 12:45 ` [XEN PATCH v2 1/4] automation: fix typo in .gcc-tmpl Anthony PERARD
2022-07-21 12:46 ` [XEN PATCH v2 2/4] automation: add a templates for test jobs Anthony PERARD
2022-07-21 12:46 ` Anthony PERARD [this message]
2022-07-21 12:46 ` [XEN PATCH v2 4/4] automation: use "needs" instead of "dependencies" " Anthony PERARD
2022-07-21 13:03 ` [XEN PATCH v2 0/4] Some improvement for gitlab CI jobs Andrew Cooper
2022-07-21 13:09 ` Anthony PERARD
2022-07-21 13:14 ` Andrew Cooper
2022-07-21 13:43 ` Anthony PERARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220721124602.9910-4-anthony.perard@citrix.com \
--to=anthony.perard@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=cardoe@cardoe.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.