diff options
Diffstat (limited to 'android-cts')
-rwxr-xr-x | android-cts/builders.sh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/android-cts/builders.sh b/android-cts/builders.sh index 603e6fe2c9..82337f35b7 100755 --- a/android-cts/builders.sh +++ b/android-cts/builders.sh @@ -1,6 +1,8 @@ -# Build Android +# Build Android cts export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 +# change to the build directory to repo sync and build +cd build repo init -u ${ANDROID_MANIFEST_URL} -b ${MANIFEST_BRANCH} repo sync -j"$(nproc)" -c rm -rf out/ @@ -16,7 +18,6 @@ if [ -n "$PATCHSETS" ]; then done fi - source build/envsetup.sh lunch ${LUNCH_TARGET} make -j"$(nproc)" cts @@ -25,11 +26,19 @@ wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/android-lcr/g cp out/host/linux-x86/cts/android-cts.zip pub/ -rm -rf art/ dalvik/ kernel/ bionic/ developers/ libcore/ sdk/ bootable/ development/ libnativehelper/ system/ build/ device/ test/ build-info/ docs/ packages/ toolchain/ .ccache/ external/ pdk/ tools/ compatibility/ frameworks/ platform_testing/ vendor/ cts/ hardware/ prebuilts/ linaro* +# Delete sources after build to save space +rm -rf art/ dalvik/ kernel/ bionic/ developers/ libcore/ sdk/ bootable/ development/ libnativehelper/ system/ build/ device/ test/ build-info/ docs/ packages/ toolchain/ .ccache/ external/ pdk/ tools/ compatibility/ frameworks/ platform_testing/ vendor/ cts/ hardware/ prebuilts/ linaro* out/ +rm -fr .repo +# need to convert '_' to '-' +# otherwise, aosp_arm64-userdebug will be translated to '~aosp/arm64-userdebug' +# when upload to snapshot.linaro.org via linaro-cp.py +# like reported here: +# https://ci.linaro.org/job/android-cts/20/console +lunch_target_str=$(echo ${LUNCH_TARGET}|tr '_' '-') # Publish parameters cat << EOF > ${WORKSPACE}/publish_parameters PUB_SRC=${PWD}/pub -PUB_DEST=/android/${JOB_NAME}/${LUNCH_TARGET}/${BUILD_NUMBER} +PUB_DEST=/android/${JOB_NAME}/${lunch_target_str}/${BUILD_NUMBER}/${MANIFEST_BRANCH} PUB_EXTRA_INC=^[^/]+zip EOF |