diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-01 17:02:18 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-02 05:50:00 +0000 |
commit | 676e8d5ead6e37071508d9e728285243127a8aa7 (patch) | |
tree | 8652840c08c25b213459f18b6f2533fc470d38d8 /zephyr-upstream.yaml | |
parent | 61fd33a39b907d1cbaa5a355ceea56051506e010 (diff) |
zephyr-upstream: initial support for lava test jobs submission
Change-Id: Id91c14d1a4ac875120a0f67a4957c673bf516c3b
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'zephyr-upstream.yaml')
-rw-r--r-- | zephyr-upstream.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/zephyr-upstream.yaml b/zephyr-upstream.yaml index 5e406007e3..e4f6b5ca76 100644 --- a/zephyr-upstream.yaml +++ b/zephyr-upstream.yaml @@ -7,6 +7,7 @@ anonymous: - job-read - job-extended-read + - job-workspace linaro: - job-read - job-extended-read @@ -16,6 +17,10 @@ days-to-keep: 30 num-to-keep: 30 artifact-num-to-keep: 30 + parameters: + - string: + name: LAVA_SERVER + default: 'staging.validation.linaro.org/RPC2/' disabled: false node: master child-workspace: . @@ -151,6 +156,39 @@ - build-name-setter: name: 'version.txt' file: true + - shell: | + #!/bin/bash -e + + case "${PLATFORM}" in + qemu_cortex_m3) + export DEVICE_TYPE=qemu + ;; + *) + echo "Skip DEVICE_TYPE for ${PLATFORM}" + ;; + esac + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + [ -z "${DEVICE_TYPE}" ] || \ + sed -e "s|\${BUILD_NUMBER}|${BUILD_NUMBER}|" \ + -e "s|\${BUILD_URL}|${BUILD_URL}|" \ + -e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \ + -e "s|\${ZEPHYR_GCC_VARIANT}|${ZEPHYR_GCC_VARIANT}|" \ + -e "s|\${PLATFORM}|${PLATFORM}|" \ + < configs/zephyr-upstream/lava-job-definitions/${DEVICE_TYPE}/task-api-test.yaml \ + > custom_lava_job_definition.yaml + + cat << EOF > post_build_lava_parameters + DEVICE_TYPE=${DEVICE_TYPE} + CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml + LAVA_SERVER=${LAVA_SERVER} + EOF + - trigger-builds: + - project: 'post-build-lava' + property-file: post_build_lava_parameters + block: true publishers: - archive: artifacts: 'scripts/sanity_chk/last_sanity.csv' |