From 59cc70a322006a1af493aece277a4fd3b6ee0996 Mon Sep 17 00:00:00 2001 From: Wen Ping Teh Date: Wed, 8 May 2024 11:18:49 +0100 Subject: [PATCH] ci/scmi-test: Update scmi-test to be used externally This patch modify scmi-test.yml to allow it to be used externally. The external project can include the scmi-test.yml and specify the PROJECT_TYPE to determine which project trigger the scmi-test. Signed-off-by: Wen Ping Teh --- .gitlab/.gitlab-ci.yml | 3 +++ .gitlab/templates/scmi-test.yml | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 62e5c5f05..b25286736 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -24,6 +24,9 @@ variables: FETCH_PUBLIC_MR_NUMBER: description: "MR number to fetch" + PROJECT_TYPE: + value: "scp" + description: "The project type to run scmi-test" include: - local: .gitlab/pipelines/deployment-pipeline.yml diff --git a/.gitlab/templates/scmi-test.yml b/.gitlab/templates/scmi-test.yml index 6504d9cc2..da6ce9355 100644 --- a/.gitlab/templates/scmi-test.yml +++ b/.gitlab/templates/scmi-test.yml @@ -22,10 +22,11 @@ - sgm776 - rdn1e1.n1edge before_script: - - ln -s $(pwd) /scp + - echo "PROJECT_TYPE = $PROJECT_TYPE" + - ln -s $(pwd) /$PROJECT_TYPE script: - echo "platform under test $SCP_CI_PLATFORM" - - /scmi_tester_entrypoint.sh + - /scmi_tester_entrypoint.sh $PROJECT_TYPE artifacts: when: always expire_in: 2 days