forked from nostra13/Android-Universal-Image-Loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
19 lines (19 loc) · 1001 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: java
before_install:
# fix the 64bit box
- sudo apt-get update -qq
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
# download the latest android sdk and unzip
- wget http://dl.google.com/android/android-sdk_r21.1-linux.tgz
- tar -zxf android-sdk_r21.1-linux.tgz
# setup your ANDROID_HOME and PATH environment variables
# use ~/builds/[Github username]/[project]/android-sdk-linux
- export ANDROID_HOME=`pwd`/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# Download the android sdk we need
# Android Platform tools, required to compile
- TOOLS=$(android list sdk --no-ui | grep "Android SDK Platform-tools" | cut -d"-" -f1)
- android update sdk --filter "$TOOLS" --no-ui --force
# API 19 stuff which needs to be provided
- SDK=$(android list sdk --no-ui | grep ", API 19," | cut -d"-" -f1)
- android update sdk --filter "$SDK" --no-ui --force