Skip to content
Snippets Groups Projects
Commit a9472eb1 authored by Chase Qi's avatar Chase Qi
Browse files

ci: enable MR test on qemu machines

Run boot test on the below qemu machines:
* qemu-x86
* qemu-cortex-m3

Closes #38



Signed-off-by: default avatarChase Qi <chase.qi@linaro.org>
parent 0ac0fa34
No related branches found
No related tags found
No related merge requests found
...@@ -63,54 +63,42 @@ linux-seco-imx8mm-c61-4gb-extra-clang: ...@@ -63,54 +63,42 @@ linux-seco-imx8mm-c61-4gb-extra-clang:
rules: rules:
- when: never - when: never
.lava-test-mr:
# Run lava test and report jobs for scheduled pipeline only. extends: .lava-test
.lava-test: variables:
rules: CI_LAVA_JOB_PRIORITY: "high"
- if: '$CI_LAVA_TOKEN == null' CI_SQUAD_GROUP_NAME: "merge-request"
when: never CI_SQUAD_PROJECT_NAME: "meta-zephyr"
- if: '$CI_PIPELINE_SOURCE == "schedule"'
.lava-report:
rules:
- if: '$CI_LAVA_TOKEN == null'
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: manual
## ##
## Submit jobs to LAVA ## Submit jobs to LAVA
## ##
lava-zephyr-96b-nitrogen-tests:
needs: [zephyr-96b-nitrogen-tests-gcc]
stage: test
extends: .lava-test
variables:
CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/nitrogen-test.yaml"
CI_BUILD_JOB_NAME: zephyr-96b-nitrogen-tests
CI_REPORT_JOB_NAME: lava-report
lava-zephyr-qemu-cortex-m3: lava-zephyr-qemu-cortex-m3:
needs: [zephyr-qemu-cortex-m3-gcc] needs: [zephyr-qemu-cortex-m3-gcc]
stage: test stage: test
extends: .lava-test extends: .lava-test-mr
variables: variables:
MACHINE: qemu-cortex-m3
CI_BUILD_JOB_NAME: zephyr-qemu-cortex-m3-gcc
CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-zephyr-cortex-m3.yaml" CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-zephyr-cortex-m3.yaml"
CI_BUILD_JOB_NAME: zephyr-qemu-cortex-m3
CI_REPORT_JOB_NAME: lava-report CI_REPORT_JOB_NAME: lava-report
lava-zephyr-qemu-x86: lava-zephyr-qemu-x86:
needs: [zephyr-qemu-x86-gcc] needs: [zephyr-qemu-x86-gcc]
stage: test stage: test
extends: .lava-test extends: .lava-test-mr
variables: variables:
MACHINE: qemu-x86
CI_BUILD_JOB_NAME: zephyr-qemu-x86-gcc
CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-zephyr-x86.yaml" CI_LAVA_JOB_DEFINITION: "https://git.ostc-eu.org/OSTC/infrastructure/lava/lava-config/-/raw/master/lava.ostc-eu.org/job-definitions/ci/qemu-zephyr-x86.yaml"
CI_BUILD_JOB_NAME: zephyr-qemu-x86
CI_REPORT_JOB_NAME: lava-report CI_REPORT_JOB_NAME: lava-report
## ##
## Get the results back from LAVA. ## Get the results back from SQUAD.
## ##
lava-report: lava-report:
needs: [lava-zephyr-96b-nitrogen-tests, lava-zephyr-qemu-cortex-m3, lava-zephyr-qemu-x86]
extends: .lava-report extends: .lava-report
dependencies: []
needs:
- lava-zephyr-qemu-cortex-m3
- lava-zephyr-qemu-x86
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment