diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-04-15 15:31:22 +0800 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-05-04 09:38:35 +0300 |
commit | 4774e103c469dd9fa292a3fb3f5ddb659efa3cfa (patch) | |
tree | 41b898ac3230e17919a3f9259a7100bb9abe89d7 /96boards-reference-platform-debian.yaml | |
parent | 726d0be62764daa3cffdc4dbc8049124246b0e59 (diff) |
96boards-reference-platform-debian: submit lava test definitions
Run WA2 on both HiKey and Dragonboard 410c.
Change-Id: I6b33b2c13bfa037cd4b7710cf14d6e6d212c977c
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-reference-platform-debian.yaml')
-rw-r--r-- | 96boards-reference-platform-debian.yaml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/96boards-reference-platform-debian.yaml b/96boards-reference-platform-debian.yaml index e7b6d91d..63b597fc 100644 --- a/96boards-reference-platform-debian.yaml +++ b/96boards-reference-platform-debian.yaml @@ -16,6 +16,13 @@ - job-extended-read - job-build - job-cancel + parameters: + - string: + name: BUNDLE_STREAM_NAME + default: '/public/team/linaro/rpb-debian/' + - string: + name: LAVA_SERVER + default: 'validation.linaro.org/RPC2/' disabled: false node: build child-workspace: . @@ -237,6 +244,43 @@ python ${HOME}/bin/linaro-cp.py \ --server ${PUBLISH_SERVER} \ --make-link snapshots/reference-platform/debian/${BUILD_NUMBER} + + cat << EOF > post_build_lava_parameters + VERSION=${VERSION} + DTB=hi6220-hikey.dtb-${KERNEL_VERSION} + EOF + - inject: + properties-file: post_build_lava_parameters + - shell: | + export ROOTFS_BUILD_URL=http://builds.96boards.org/snapshots/reference-platform/debian/${BUILD_NUMBER}/${BOARD}/${BOARD}-rootfs-debian-jessie-alip-${VERSION}.emmc.img.gz + + case "${BOARD}" in + hikey) + export DEVICE_TYPE=hi6220-hikey + export PTABLE_URL=http://builds.96boards.org/releases/reference-platform/debian/hikey/16.03/bootloader/ptable-linux-8g.img + export BOOT_URL=http://builds.96boards.org/snapshots/reference-platform/debian/${BUILD_NUMBER}/${BOARD}/${BOARD}-boot-linux-${VERSION}.uefi.img.gz + ;; + dragonboard410c) + export DEVICE_TYPE=apq8016-sbc + export BOOT_URL=http://builds.96boards.org/snapshots/reference-platform/debian/${BUILD_NUMBER}/${BOARD}/${BOARD}-boot-linux-${VERSION}.img.gz + ;; + esac + + 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 + ./lci-build-tools/yaml-to-json.py configs/${JOB_NAME}/lava-job-definitions/${DEVICE_TYPE}/template-wa2.yaml > custom_lava_job_definition_wa2.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_wa2.json + LAVA_SERVER=${LAVA_SERVER} + EOF + - trigger-builds: + - project: 'post-build-lava' + property-file: post_build_lava_parameters + block: true publishers: - email: recipients: 'ricardo.salveti@linaro.org' |