Skip to content

Instantly share code, notes, and snippets.

@brunodles
Forked from emanuelet/gist:539e8cfe3d7c450c063d
Created February 3, 2016 12:33
Show Gist options
  • Save brunodles/ca4c5fb485dcaf808291 to your computer and use it in GitHub Desktop.
Save brunodles/ca4c5fb485dcaf808291 to your computer and use it in GitHub Desktop.
Codeship Setup Commands for Android Gradle Build
wget http://dl.google.com/android/android-sdk_r24.3-linux.tgz
tar xvzf android-sdk_r24.3-linux.tgz
rm android-sdk_r24.3-linux.tgz
export ANDROID_HOME=$PWD/android-sdk-linux
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
echo "y" | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-22.0.1,android-22,extra-google-m2repository,extra-google-google_play_services,extra-android-support,139
cd -
touch local.properties
echo "sdk.dir=$ANDROID_HOME" >> local.properties
# ./gradlew clean
./gradlew assembleProdRelease
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment