Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
ci/scmi-test: Update scmi-test to be used externally
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wenping-arm committed May 17, 2024
1 parent 5fa2d90 commit 59cc70a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .gitlab/templates/scmi-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59cc70a

Please sign in to comment.