diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2017-05-11 16:08:53 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2017-05-11 12:58:31 +0000 |
commit | 420e43b9020847bb47f6d23bd92b1fdc9bc69bc2 (patch) | |
tree | a5b9ecca87ce36321f388e0be94fd7f35d8e6a73 /android-cts | |
parent | e1c781edf8330021c1f524ed3c4b02a261aece79 (diff) |
android-cts: new job to build cts package
Change-Id: I5f8c55f26c63dd890a12d7c36465a7da2c9ca44f
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'android-cts')
-rwxr-xr-x | android-cts/builders.sh | 28 | ||||
-rw-r--r-- | android-cts/builders.yaml.inc | 10 |
2 files changed, 38 insertions, 0 deletions
diff --git a/android-cts/builders.sh b/android-cts/builders.sh new file mode 100755 index 0000000000..27e4b9c2f2 --- /dev/null +++ b/android-cts/builders.sh @@ -0,0 +1,28 @@ +# Build Android +repo init -u ${ANDROID_MANIFEST_URL} -b ${MANIFEST_BRANCH} +repo sync -j"$(nproc)" -c + +if [ -n "$PATCHSETS" ]; then + rm -rf android-patchsets + git clone --depth=1 https://android-git.linaro.org/git/android-patchsets.git + for i in $PATCHSETS; do + sh ./android-patchsets/$i + done +fi + + +source build/envsetup.sh +lunch ${LUNCH_TARGET} +make -j"$(nproc)" cts + +mkdir -p pub +wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/android-lcr/generic/build-info/public-template.txt -O pub/BUILD-INFO.txt + +cp out/host/linux-x86/cts/android-cts.zip pub/ + +# Publish parameters +cat << EOF > ${WORKSPACE}/publish_parameters +PUB_SRC=${PWD}/pub +PUB_DEST=/android/${JOB_NAME}/${LUNCH_TARGET}/${BUILD_NUMBER} +PUB_EXTRA_INC=^[^/]+zip +EOF diff --git a/android-cts/builders.yaml.inc b/android-cts/builders.yaml.inc new file mode 100644 index 0000000000..7402400f7e --- /dev/null +++ b/android-cts/builders.yaml.inc @@ -0,0 +1,10 @@ + - shell: + !include-raw: + - android-lcr/common/builders.sh + - android-cts/builders.sh + - inject: + properties-file: publish_parameters + - linaro-publish-token + - shell: + !include-raw: + - android/linaro-publisher.sh |