From 8185d6362c07a390d865c8dc7de3e0475c2cb8f7 Mon Sep 17 00:00:00 2001
From: Chase Qi <chase.qi@linaro.org>
Date: Wed, 12 Jan 2022 15:26:19 +0800
Subject: [PATCH] ci: enable raspberrypi4-64 lava test job

Signed-off-by: Chase Qi <chase.qi@linaro.org>
---
 .gitlab-ci.yml              | 12 +++++++++++-
 .oniro-ci/test-generic.yaml |  1 +
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e0a1190..6352db27 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -154,6 +154,16 @@ lava-qemu-x86_64:
     CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-x86_64.yaml"
     CI_REPORT_JOB_NAME: lava-report
 
+lava-raspberrypi4-64:
+  needs: [linux-raspberrypi4-64]
+  stage: test
+  extends: .lava-test
+  variables:
+    MACHINE: raspberrypi4-64
+    CI_BUILD_JOB_NAME: linux-raspberrypi4-64
+    CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/raspberrypi4-64.yaml"
+    CI_REPORT_JOB_NAME: lava-report
+
 lava-zephyr-96b-nitrogen-tests:
   needs: [zephyr-96b-nitrogen-tests]
   stage: test
@@ -185,7 +195,7 @@ lava-zephyr-qemu-x86:
     CI_REPORT_JOB_NAME: lava-report
 
 lava-report:
-  needs: [lava-qemu-x86, lava-qemu-x86_64, lava-zephyr-96b-nitrogen-tests, lava-zephyr-qemu-cortex-m3, lava-zephyr-qemu-x86]
+  needs: [lava-qemu-x86, lava-qemu-x86_64, lava-zephyr-96b-nitrogen-tests, lava-zephyr-qemu-cortex-m3, lava-zephyr-qemu-x86, lava-raspberrypi4-64]
   extends: .lava-report
 
 lava-badge:
diff --git a/.oniro-ci/test-generic.yaml b/.oniro-ci/test-generic.yaml
index 223b8ee2..73ab2577 100644
--- a/.oniro-ci/test-generic.yaml
+++ b/.oniro-ci/test-generic.yaml
@@ -70,6 +70,7 @@
   artifacts:
     paths:
       - job_ids_*.txt
+      - lava_jobs/*.yaml
   rules:
     # Run the build when it is scheduled.
     - if: $CI_PIPELINE_SOURCE == "schedule"
-- 
GitLab