aboutsummaryrefslogtreecommitdiff
path: root/zephyr-tutorial.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr-tutorial.yaml')
-rw-r--r--zephyr-tutorial.yaml114
1 files changed, 114 insertions, 0 deletions
diff --git a/zephyr-tutorial.yaml b/zephyr-tutorial.yaml
new file mode 100644
index 00000000..19966a36
--- /dev/null
+++ b/zephyr-tutorial.yaml
@@ -0,0 +1,114 @@
+- job:
+ name: zephyr-tutorial
+ 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: 10
+ num-to-keep: 10
+ artifact-num-to-keep: 10
+ - throttle:
+ option: category
+ categories: [lite-zephyr]
+ matrix-builds: false
+ matrix-configs: true
+ parameters:
+ - string:
+ name: BRANCH
+ default: 'tutorial'
+ - string:
+ name: LAVA_SERVER
+ default: 'validation.linaro.org/RPC2/'
+ - string:
+ name: GIT_COMMIT
+ default: ''
+ disabled: false
+ node: master
+ child-workspace: .
+ display-name: 'Zephyr project CI tutorial'
+ axes:
+ - axis:
+ type: slave
+ name: label
+ values:
+ - docker-xenial-amd64-13
+ - axis:
+ type: user-defined
+ name: PLATFORM
+ values:
+ - frdm_k64f
+ - frdm_kw41z
+ - qemu_cortex_m3
+ wrappers:
+ - timestamps
+ - credentials-binding:
+ - text:
+ credential-id: LAVA_USER
+ variable: LAVA_USER
+ - credentials-binding:
+ - text:
+ credential-id: LAVA_TOKEN
+ variable: LAVA_TOKEN
+ builders:
+ - shell:
+ !include-raw: zephyr-upstream/builders.sh
+ - inject:
+ properties-file: env_var_parameters
+ - build-name-setter:
+ template: '#${BUILD_NUMBER}-${GIT_COMMIT}'
+ macro: true
+ - linaro-publish-token
+ - shell: |
+ #!/bin/bash
+
+ # Publish
+ test -d ${HOME}/bin || mkdir ${HOME}/bin
+ wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
+ time python ${HOME}/bin/linaro-cp.py \
+ --api_version 3 \
+ --link-latest \
+ out/${PLATFORM} components/kernel/zephyr/${BRANCH}/${PLATFORM}/${BUILD_NUMBER}
+
+ - shell: |
+ #!/bin/bash -e
+
+ case "${PLATFORM}" in
+ frdm_k64f)
+ export DEVICE_TYPE=frdm-k64f
+ ;;
+ frdm_kw41z)
+ export DEVICE_TYPE=frdm-kw41z
+ ;;
+ 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/people/bill.fletcher/configs.git
+
+ python configs/zephyr-tutorial/submit_to_lava_lite.py \
+ --board-name ${PLATFORM} \
+ --device-type ${DEVICE_TYPE} \
+ --build-number ${BUILD_NUMBER} \
+ --branch-name ${BRANCH} \
+ --build-url ${BUILD_URL} \
+ --lava-server ${LAVA_SERVER} \
+
+ rm -rf out
+ publishers:
+ - email:
+ recipients: 'bill.fletcher@linaro.org'