Created
July 24, 2017 06:35
-
-
Save FacuM/7d6d270fb678921afe61c19a39548b39 to your computer and use it in GitHub Desktop.
XenonHD build script for Jenkins job.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p $WORKSPACE/bin | |
mkdir -p $WORKSPACE/xenon | |
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > $WORKSPACE/bin/repo && chmod a+x $WORKSPACE/bin/repo | |
export CCACHE_DIR=$WORKSPACE/.ccache | |
export USE_CCACHE=1 | |
export TO_OR=$(nproc --all) | |
#export PATH=$PATH:$WORKSPACE/xenon/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin | |
#export PATH=$PATH:$WORKSPACE/xenon/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin | |
# Resize the Java Heap size | |
export _JAVA_OPTIONS="-Xmx4096m" | |
# Resize the Jack Heap size | |
export ANDROID_JACK_VM_ARGS="-Xmx4096m -Dfile.encoding=UTF-8 -XX:+TieredCompilation" | |
cd $WORKSPACE/xenon | |
mkdir -p .repo/local_manifests | |
curl https://gist.githubusercontent.com/FacuM/9a2aed8724164e1b41322faec05a0b0d/raw/904b231adafa133dc6a61bb89b0043ae59030a0e/local_manifest.xml > .repo/local_manifests/local_manifest.xml | |
repo init -u https://github.com/TeamHorizon/platform_manifest.git -b n | |
repo sync -j$(nproc --all) | |
. build/envsetup.sh | |
#make clean && make clobber | |
brunch harpia | |
cd out/target/product/harpia | |
sshpass -p 'password' scp XenonHD* username@uploads.androidfilehost.com:/ | |
cd $WORKSPACE | |
rm -Rf xenon |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment