Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@klynch
Created June 12, 2014 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klynch/2d31a2697226897df060 to your computer and use it in GitHub Desktop.
Save klynch/2d31a2697226897df060 to your computer and use it in GitHub Desktop.
Helps set up Android on a jenkins node
#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