diff options
author | Aníbal Limón <anibal.limon@linaro.org> | 2017-11-21 12:36:47 -0600 |
---|---|---|
committer | Anibal Limon <anibal.limon@linaro.org> | 2017-11-22 14:39:58 +0000 |
commit | db6227168a0020192383c554a49dd5eb2c6daf0c (patch) | |
tree | 66042b96b238bce7b799460338273440b0d17f33 /lt-qcom-debian-images-dragonboard410c.yaml | |
parent | 3528b537f8b6eecccfe218d41a72978ad9da7c06 (diff) |
lt-qcom-debian-images-dragonboard410c: Add support for LAVA testing
- Use the same templates as an OE build and the same test plans without
ptest because isn't available on debian.
- Use the openembedded-lkft scripts to send the job to QA-REPORTS and LAVA.
Change-Id: I37406498d5c8a6ec1a3157070e352fc82b1403c5
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images-dragonboard410c.yaml')
-rw-r--r-- | lt-qcom-debian-images-dragonboard410c.yaml | 53 |
1 files changed, 48 insertions, 5 deletions
diff --git a/lt-qcom-debian-images-dragonboard410c.yaml b/lt-qcom-debian-images-dragonboard410c.yaml index 3d6ca541fe..b07522cf09 100644 --- a/lt-qcom-debian-images-dragonboard410c.yaml +++ b/lt-qcom-debian-images-dragonboard410c.yaml @@ -16,14 +16,14 @@ - job-cancel parameters: - string: - name: BUNDLE_STREAM_NAME - default: '/public/team/linaro/lt-qualcomm/' - - string: name: DEVICE_TYPE - default: 'apq8016-sbc' + default: 'dragonboard-410c' - string: name: LAVA_SERVER - default: 'validation.linaro.org/RPC2/' + default: 'https://validation.linaro.org/RPC2/' + - string: + name: QA_SERVER + default: 'https://qa-reports.linaro.org' - string: name: VENDOR default: 'linaro' @@ -71,6 +71,10 @@ - timestamps - build-name: name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + - credentials-binding: + - text: + credential-id: QA_REPORTS_TOKEN + variable: QA_REPORTS_TOKEN builders: - shell: !include-raw: lt-qcom-debian-images/builders-fai.sh @@ -104,8 +108,47 @@ --server ${PUBLISH_SERVER} \ --link-latest \ out snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER} + - shell: | + #!/bin/bash + + rm -rf configs + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + + # main parameters + export DEPLOY_OS=debian + export OS_INFO=debian-${OS_FLAVOUR} + export BOOT_OS_PROMPT=\'root@linaro-alip:~#\' + + # boot and rootfs parameters + export PUB_DEST=https://builds.96boards.org/snapshots/dragonboard410c/${VENDOR}/debian/${BUILD_NUMBER} + + export BOOT_URL=${PUB_DEST}/boot-${VENDOR}-${OS_FLAVOUR}-${PLATFORM_NAME}-${BUILD_NUMBER}.img.gz + export BOOT_URL_COMP="gz" + export LXC_BOOT_FILE=`basename ${BOOT_URL} .gz` + export ROOTFS_URL=${PUB_DEST}/${VENDOR}-${OS_FLAVOUR}-alip-${PLATFORM_NAME}-${BUILD_NUMBER}.img.gz + export ROOTFS_URL_COMP="gz" + export LXC_ROOTFS_FILE=`basename ${ROOTFS_URL} .gz` + + # XXX: the debian rootfs images are build small as possible, resize + # to be able install LAVA test overlay, by now to 3GB is enough + export RESIZE_ROOTFS=3G + + python configs/openembedded-lkft/submit_for_testing.py \ + --device-type ${DEVICE_TYPE} \ + --build-number ${BUILD_NUMBER} \ + --lava-server ${LAVA_SERVER} \ + --qa-server ${QA_SERVER} \ + --qa-server-team qcomlt \ + --qa-server-project ${OS_INFO} \ + --git-commit ${BUILD_NUMBER} \ + --template-path configs/lt-qcom/lava-job-definitions \ + --template-base-pre base_template.yaml + --template-names template.yaml template-wifi.yaml template-bt.yaml publishers: - groovy-postbuild: + script: + !include-raw: openembedded-lkft/postbuild.groovy + - groovy-postbuild: script: | def build_number = manager.build.number def vendor = manager.build.buildVariables.get('VENDOR') |