Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Created June 3, 2012 16:59
Show Gist options
  • Save leviwilson/2864158 to your computer and use it in GitHub Desktop.
Save leviwilson/2864158 to your computer and use it in GitHub Desktop.
.travis.yml for building Android with the maven-android-plugin
language: java
before_install:
# download the latest android sdk and unzip
- wget http://dl.google.com/android/android-sdk_r18-linux.tgz
- tar -zxf android-sdk_r18-linux.tgz
# setup your ANDROID_HOME and PATH environment variables
- export ANDROID_HOME=~/builds/[github username]/[your project name]/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# only update the sdk for the tools and platform-tools (1,2) and whatever api level
# you are building for android (run "android list sdk" to get the full list. 9 = 2.3.3 or API level 10
- android update sdk --filter 1,2,9 --no-ui --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment