Created
August 21, 2012 16:27
-
-
Save jaredholdcroft/3417048 to your computer and use it in GitHub Desktop.
Travis CI config file for android project
This file contains hidden or 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
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 | |
# use ~/builds/[Github username]/[project]/android-sdk-linux | |
- export ANDROID_HOME=~/builds/leviwilson/android-travis-ci-example/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