diff mbox series

[v3,4/4] automation: Add CI test jobs for Yocto

Message ID 00335fd0abaee077c09a33ec6c3ae93ddce30f5b.1667224593.git.bertrand.marquis@arm.com (mailing list archive)
State Superseded
Headers show
Series Yocto Gitlab CI | expand

Commit Message

Bertrand Marquis Oct. 31, 2022, 2 p.m. UTC
From: Michal Orzel <michal.orzel@amd.com>

Populate test jobs for Yocto based tests using the provided containers.
Due to the size restrictions, it is currently not possible to split the
build and run tasks, therefore everything is done in a single step.

Test jobs for the supported Yocto targets are generic to avoid the
necessity to add new ones after each Yocto release. The only thing
required to be changed after updating the containers is the variable
YOCTO_VERSION stored in a .yocto-test template.

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
---
Changes in v3:
- patch added
---
 automation/gitlab-ci/test.yaml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
diff mbox series

Patch

diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index fc0884b12082..44febcf97262 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -52,6 +52,18 @@ 
   tags:
     - 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}
+  artifacts:
+    paths:
+      - 'logs/*'
+    when: always
+
 # Test jobs
 build-each-commit-gcc:
   extends: .test-jobs-common
@@ -186,3 +198,25 @@  qemu-smoke-x86-64-clang-pvh:
     - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee ${LOGFILE}
   needs:
     - debian-unstable-clang-debug
+
+# Yocto test jobs
+yocto-qemuarm64:
+  extends: .yocto-test
+  variables:
+    YOCTO_BOARD: qemuarm64
+  tags:
+    - arm64
+
+yocto-qemuarm:
+  extends: .yocto-test
+  variables:
+    YOCTO_BOARD: qemuarm
+  tags:
+    - arm32
+
+yocto-qemux86-64:
+  extends: .yocto-test
+  variables:
+    YOCTO_BOARD: qemux86-64
+  tags:
+    - x86_64