aboutsummaryrefslogtreecommitdiff
path: root/rpb-openembedded-morty.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-02-07 21:10:20 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2017-02-08 08:22:31 +0000
commita9324a5244fb89690bb5fcc7e38144d01dd8f497 (patch)
treea8947e4d26b4e5152817ef0fdeea5cabee544384 /rpb-openembedded-morty.yaml
parent60db7294c18ae5c4877b0757e55277b5c276f65d (diff)
rpb-openembedded-morty: submit LAVA v2 test definitions to B2260 board
Include support for LAVA v2 test definitions. Submit LAVA v2 test definitions to B2260 boards. Change-Id: Ica0fe42963f899b0791bfc1ef38b3c501e72e766 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'rpb-openembedded-morty.yaml')
-rw-r--r--rpb-openembedded-morty.yaml40
1 files changed, 33 insertions, 7 deletions
diff --git a/rpb-openembedded-morty.yaml b/rpb-openembedded-morty.yaml
index 59ff590b..ccb991c2 100644
--- a/rpb-openembedded-morty.yaml
+++ b/rpb-openembedded-morty.yaml
@@ -88,6 +88,8 @@
dragonboard-410c)
export DEVICE_TYPE=apq8016-sbc
;;
+ stih410-b2260)
+ export DEVICE_TYPE=b2260
*)
echo "Skip DEVICE_TYPE for ${MACHINE}"
;;
@@ -96,14 +98,38 @@
rm -rf configs lci-build-tools
git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git
git clone --depth 1 http://git.linaro.org/ci/job/configs.git
- [ -z "${DEVICE_TYPE}" ] || ./lci-build-tools/yaml-to-json.py configs/96boards-reference-platform-openembedded/lava-job-definitions/${DEVICE_TYPE}/template.yaml > custom_lava_job_definition.json
- cat << EOF > post_build_lava_parameters
- DEVICE_TYPE=${DEVICE_TYPE}
- BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME}
- CUSTOM_JSON_URL=${JOB_URL}/ws/custom_lava_job_definition.json
- LAVA_SERVER=${LAVA_SERVER}
- EOF
+ # Handle LAVA v1 (json)/v2 (yaml) test definitions
+ case "${MACHINE}" in
+ dragonboard-410c)
+ [ -z "${DEVICE_TYPE}" ] || \
+ ./lci-build-tools/yaml-to-json.py configs/96boards-reference-platform-openembedded/lava-job-definitions/${DEVICE_TYPE}/template.yaml > custom_lava_job_definition.json
+
+ cat << EOF > post_build_lava_parameters
+ DEVICE_TYPE=${DEVICE_TYPE}
+ BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME}
+ CUSTOM_JSON_URL=${JOB_URL}/ws/custom_lava_job_definition.json
+ LAVA_SERVER=${LAVA_SERVER}
+ EOF
+ ;;
+ stih410-b2260)
+ [ -z "${DEVICE_TYPE}" ] || \
+ sed -e "s|\${KERNEL_URL}|${KERNEL_URL}|" \
+ -e "s|\${DTB_URL}|${DTB_URL}|" \
+ -e "s|\${NFSROOTFS_URL}|${NFSROOTFS_URL}|" \
+ -e "s|\${BUILD_URL}|${BUILD_URL}|" \
+ < configs/96boards-reference-platform-openembedded/lava-job-definitions/${DEVICE_TYPE}/template.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
+ *)
+ echo "Skip LAVA test definitions for ${MACHINE}"
+ ;;
+ esac
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters