|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] automation: add a templates for test jobs
commit 22c7a223319e198b511380624164529a671e41c4
Author: Anthony PERARD <anthony.perard@xxxxxxxxxx>
AuthorDate: Thu Jul 21 13:46:00 2022 +0100
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu Jul 21 20:42:40 2022 +0100
automation: add a templates for test jobs
Allow to set common configuration from a single place for all tests
jobs.
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
automation/gitlab-ci/test.yaml | 81 ++++++++++--------------------------------
1 file changed, 18 insertions(+), 63 deletions(-)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 42cd725a12..53b43801f4 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -1,7 +1,15 @@
-# Test jobs
-build-each-commit-gcc:
+.test-jobs-common:
stage: test
image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ except:
+ - master
+ - smoke
+ - /^coverity-tested\/.*/
+ - /^stable-.*/
+
+# Test jobs
+build-each-commit-gcc:
+ extends: .test-jobs-common
variables:
CONTAINER: debian:stretch
XEN_TARGET_ARCH: x86_64
@@ -16,15 +24,9 @@ build-each-commit-gcc:
dependencies: []
tags:
- x86_64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-alpine-arm64-gcc:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:unstable-arm64v8
script:
@@ -41,15 +43,9 @@ qemu-alpine-arm64-gcc:
when: always
tags:
- arm64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-alpine-x86_64-gcc:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:stretch
script:
@@ -65,15 +61,9 @@ qemu-alpine-x86_64-gcc:
when: always
tags:
- x86_64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-smoke-arm64-gcc:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:unstable-arm64v8
script:
@@ -89,15 +79,9 @@ qemu-smoke-arm64-gcc:
when: always
tags:
- arm64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-smoke-arm32-gcc:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:unstable-arm64v8
script:
@@ -112,15 +96,9 @@ qemu-smoke-arm32-gcc:
when: always
tags:
- arm64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-smoke-x86-64-gcc:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:stretch
script:
@@ -134,15 +112,9 @@ qemu-smoke-x86-64-gcc:
- debian-stretch-gcc-debug
tags:
- x86_64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-smoke-x86-64-clang:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:stretch
script:
@@ -156,15 +128,9 @@ qemu-smoke-x86-64-clang:
- debian-unstable-clang-debug
tags:
- x86_64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-smoke-x86-64-gcc-pvh:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:stretch
script:
@@ -178,15 +144,9 @@ qemu-smoke-x86-64-gcc-pvh:
- debian-stretch-gcc-debug
tags:
- x86_64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
qemu-smoke-x86-64-clang-pvh:
- stage: test
- image: registry.gitlab.com/xen-project/xen/${CONTAINER}
+ extends: .test-jobs-common
variables:
CONTAINER: debian:stretch
script:
@@ -200,8 +160,3 @@ qemu-smoke-x86-64-clang-pvh:
- debian-unstable-clang-debug
tags:
- x86_64
- except:
- - master
- - smoke
- - /^coverity-tested\/.*/
- - /^stable-.*/
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |