mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
automation: move yocto jobs to build stage
We are going to use artifacts produced by the Yocto builds in test jobs. Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com> Reviewed-by: Michal Orzel <michal.orzel@amd.com>
This commit is contained in:
1 parent
49b1cb2741
commit
adfb590ec3
2 files changed
+51
-45
No files matched your search
@@ -199,6 +199,41 @@
|
|||||||
variables:
|
variables:
|
||||||
<<: *gcc
|
<<: *gcc
|
||||||
|
|
||||||
|
.yocto-test:
|
||||||
|
stage: build
|
||||||
|
image: registry.gitlab.com/xen-project/xen/${CONTAINER}
|
||||||
|
except:
|
||||||
|
- master
|
||||||
|
- smoke
|
||||||
|
- /^coverity-tested\/.*/
|
||||||
|
- /^stable-.*/
|
||||||
|
script:
|
||||||
|
- ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD}
|
||||||
|
variables:
|
||||||
|
YOCTO_VERSION: kirkstone
|
||||||
|
CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}-${YOCTO_HOST}
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- 'logs/*'
|
||||||
|
when: always
|
||||||
|
needs: []
|
||||||
|
|
||||||
|
.yocto-test-arm64:
|
||||||
|
extends: .yocto-test
|
||||||
|
variables:
|
||||||
|
YOCTO_HOST: arm64v8
|
||||||
|
tags:
|
||||||
|
- arm64
|
||||||
|
|
||||||
|
# This is not used by any test job as we only run Yocto on arm based machines.
|
||||||
|
# Keep it here so that someone having x86 hardware can easily add jobs.
|
||||||
|
.yocto-test-x86-64:
|
||||||
|
extends: .yocto-test
|
||||||
|
variables:
|
||||||
|
YOCTO_HOST: amd64
|
||||||
|
tags:
|
||||||
|
- x86_64
|
||||||
|
|
||||||
# Jobs below this line
|
# Jobs below this line
|
||||||
|
|
||||||
archlinux-gcc:
|
archlinux-gcc:
|
||||||
@@ -619,6 +654,22 @@ archlinux-current-gcc-riscv64-debug-randconfig:
|
|||||||
EXTRA_FIXED_RANDCONFIG:
|
EXTRA_FIXED_RANDCONFIG:
|
||||||
CONFIG_COVERAGE=n
|
CONFIG_COVERAGE=n
|
||||||
|
|
||||||
|
# Yocto test jobs
|
||||||
|
yocto-qemuarm64:
|
||||||
|
extends: .yocto-test-arm64
|
||||||
|
variables:
|
||||||
|
YOCTO_BOARD: qemuarm64
|
||||||
|
|
||||||
|
yocto-qemuarm:
|
||||||
|
extends: .yocto-test-arm64
|
||||||
|
variables:
|
||||||
|
YOCTO_BOARD: qemuarm
|
||||||
|
|
||||||
|
yocto-qemux86-64:
|
||||||
|
extends: .yocto-test-arm64
|
||||||
|
variables:
|
||||||
|
YOCTO_BOARD: qemux86-64
|
||||||
|
|
||||||
## Test artifacts common
|
## Test artifacts common
|
||||||
|
|
||||||
.test-jobs-artifact-common:
|
.test-jobs-artifact-common:
|
||||||
|
|||||||
@@ -67,35 +67,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- x86_64
|
- x86_64
|
||||||
|
|
||||||
.yocto-test:
|
|
||||||
extends: .test-jobs-common
|
|
||||||
script:
|
|
||||||
- ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs --xen-dir=`pwd` ${YOCTO_BOARD}
|
|
||||||
variables:
|
|
||||||
YOCTO_VERSION: kirkstone
|
|
||||||
CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}-${YOCTO_HOST}
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- 'logs/*'
|
|
||||||
when: always
|
|
||||||
needs: []
|
|
||||||
|
|
||||||
.yocto-test-arm64:
|
|
||||||
extends: .yocto-test
|
|
||||||
variables:
|
|
||||||
YOCTO_HOST: arm64v8
|
|
||||||
tags:
|
|
||||||
- arm64
|
|
||||||
|
|
||||||
# This is not used by any test job as we only run Yocto on arm based machines.
|
|
||||||
# Keep it here so that someone having x86 hardware can easily add jobs.
|
|
||||||
.yocto-test-x86-64:
|
|
||||||
extends: .yocto-test
|
|
||||||
variables:
|
|
||||||
YOCTO_HOST: amd64
|
|
||||||
tags:
|
|
||||||
- x86_64
|
|
||||||
|
|
||||||
# Test jobs
|
# Test jobs
|
||||||
build-each-commit-gcc:
|
build-each-commit-gcc:
|
||||||
extends: .test-jobs-common
|
extends: .test-jobs-common
|
||||||
@@ -317,19 +288,3 @@ qemu-smoke-riscv64-gcc:
|
|||||||
- ./automation/scripts/qemu-smoke-riscv64.sh 2>&1 | tee ${LOGFILE}
|
- ./automation/scripts/qemu-smoke-riscv64.sh 2>&1 | tee ${LOGFILE}
|
||||||
needs:
|
needs:
|
||||||
- archlinux-current-gcc-riscv64-debug
|
- archlinux-current-gcc-riscv64-debug
|
||||||
|
|
||||||
# Yocto test jobs
|
|
||||||
yocto-qemuarm64:
|
|
||||||
extends: .yocto-test-arm64
|
|
||||||
variables:
|
|
||||||
YOCTO_BOARD: qemuarm64
|
|
||||||
|
|
||||||
yocto-qemuarm:
|
|
||||||
extends: .yocto-test-arm64
|
|
||||||
variables:
|
|
||||||
YOCTO_BOARD: qemuarm
|
|
||||||
|
|
||||||
yocto-qemux86-64:
|
|
||||||
extends: .yocto-test-arm64
|
|
||||||
variables:
|
|
||||||
YOCTO_BOARD: qemux86-64
|
|
||||||