diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-12-09 13:09:22 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-12-09 11:10:55 +0000 |
commit | fcaf1db7e6e50b0b079e7e9abc70f2da7b3e8077 (patch) | |
tree | 7277b004b89106fc904db3feb2dc6c8066a70e57 /zephyr-upstream-arm.yaml | |
parent | f1e5f60cd4d73c557f428791e7dde1e0adcce565 (diff) |
zephyr-upstream: build arm branch
Change-Id: I14b675b8f607e5e9062fa7fbf20704f05711c8ac
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'zephyr-upstream-arm.yaml')
-rw-r--r-- | zephyr-upstream-arm.yaml | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/zephyr-upstream-arm.yaml b/zephyr-upstream-arm.yaml new file mode 100644 index 0000000000..26a28f0611 --- /dev/null +++ b/zephyr-upstream-arm.yaml @@ -0,0 +1,119 @@ +- job: + name: zephyr-upstream-arm + project-type: matrix + defaults: global + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + - job-workspace + linaro: + - job-read + - job-extended-read + - job-build + - job-cancel + - build-discarder: + days-to-keep: 30 + num-to-keep: 30 + artifact-num-to-keep: 30 + parameters: + - string: + name: BRANCH + default: 'arm' + - string: + name: LAVA_SERVER + default: 'staging.validation.linaro.org/RPC2/' + disabled: false + node: master + child-workspace: . + display-name: 'Zephyr project (arm)' + axes: + - axis: + type: slave + name: label + values: + - docker-xenial-amd64-13 + - axis: + type: user-defined + name: ZEPHYR_GCC_VARIANT + values: + - gccarmemb + - zephyr + - axis: + type: user-defined + name: PLATFORM + values: + - 96b_carbon + - 96b_nitrogen + - arduino_101 + - arduino_101_ble + - arduino_due + - bbc_microbit + - cc3200_launchxl + - frdm_k64f + - hexiwear_k64 + - nrf51_blenano + - nrf51_pca10028 + - nrf52_pca10040 + - nucleo_f103rb + - nucleo_f401re + - olimexino_stm32 + - qemu_cortex_m3 + - qemu_x86 + - quark_se_c1000_ble + - stm32_mini_a15 + - v2m_beetle + execution-strategy: + combination-filter: | + ZEPHYR_GCC_VARIANT=="zephyr" || (ZEPHYR_GCC_VARIANT=="gccarmemb" && !(PLATFORM=="arduino_101" || PLATFORM=="qemu_x86")) + wrappers: + - timestamps + builders: + - linaro-publish-token + - shell: + !include-raw: zephyr-upstream/builders.sh + - inject: + properties-file: env_var_parameters + - build-name-setter: + template: '#${BUILD_NUMBER}-${GIT_COMMIT}' + macro: 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}|" \ + -e "s|\${GIT_COMMIT}|${GIT_COMMIT}|" \ + < 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' + - email: + recipients: 'fathi.boudra@linaro.org kumar.gala@linaro.org' |