Created
June 12, 2014 17:52
-
-
Save klynch/2d31a2697226897df060 to your computer and use it in GitHub Desktop.
Helps set up Android on a jenkins node
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
#https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins | |
#https://github.com/thecodepath/android_guides/wiki/Building-Gradle-Projects-with-Jenkins-CI | |
#http://www.snap-interactive.com/blog/automating-our-android-app-with-gradle-and-deploygate/ | |
ANDROID_SDK=android-sdk_r22.6.2-linux.tgz | |
wget http://dl.google.com/android/$ANDROID_SDK | |
tar zxvf $ANDROID_SDK | |
#Make sure the Android tools are on the PATH | |
cat >/etc/profile/android.sh <<EOF | |
export ANDROID_HOME="/opt/android-sdk-linux" | |
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH" | |
EOF | |
source /etc/profile | |
apt-get install git-core libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 | |
android update sdk --no-ui | |
chmod -R ugo+rX $ANDROID_HOME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment