aboutsummaryrefslogtreecommitdiff
path: root/android-vts
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2017-03-25 11:39:48 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2017-03-25 06:12:34 +0000
commit4af5d655420430a408d5dc7f757e5288fbabe76d (patch)
treeaaa9576d94392532d882092f393613418fa4df34 /android-vts
parent249fa722a6b93ab066152233bf071fc2cf0a21d5 (diff)
android-vts: Add new job to build vts
Change-Id: I27b7018dac916def928806b3a04a5ac95f0eb03d Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'android-vts')
-rwxr-xr-xandroid-vts/builders.sh28
-rw-r--r--android-vts/builders.yaml.inc10
2 files changed, 38 insertions, 0 deletions
diff --git a/android-vts/builders.sh b/android-vts/builders.sh
new file mode 100755
index 00000000..f5e492b0
--- /dev/null
+++ b/android-vts/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)" android-vts
+
+mkdir pub
+wget 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/vts/android-vts.zip pub/
+
+# Publish parameters
+cat << EOF > ${WORKSPACE}/publish_parameters
+PUB_SRC=${PWD}/pub
+PUB_DEST=/android/${JOB_NAME}/${BUILD_NUMBER}/${LUNCH_TARGET}
+PUB_EXTRA_INC=^[^/]+zip
+EOF
diff --git a/android-vts/builders.yaml.inc b/android-vts/builders.yaml.inc
new file mode 100644
index 00000000..7dce1893
--- /dev/null
+++ b/android-vts/builders.yaml.inc
@@ -0,0 +1,10 @@
+ - shell:
+ !include-raw:
+ - android-lcr/common/builders.sh
+ - android-vts/builders.sh
+ - inject:
+ properties-file: publish_parameters
+ - linaro-publish-token
+ - shell:
+ !include-raw:
+ - android/linaro-publisher.sh