-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (29 loc) · 1.57 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: java
before_install:
- 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_r18-linux.tgz
- tar -zxf android-sdk_r18-linux.tgz
- export ANDROID_HOME=`pwd`/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/build-tools/18.0.1
# 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,8,9 --no-ui --force
# Once we have downloaded the essential tools more targets are available for download, so go and get what we need.
- android update sdk --filter android-8 --no-ui --force
# now get a runtime environment, the latest revision of Android (4.2.2) should do.
- android update sdk --filter android-17,sysimg-17,tools,platform-tools,extra-android-support --no-ui --force
- echo y | android update sdk -a --filter build-tools-18.1.1 --no-ui --force
before_script:
- pwd
- ls -la
- ls -la actionbarsherlock
- ls -la android-sdk-linux
- ls -la android-sdk-linux/platform-tools
- ls -laR android-sdk-linux/build-tools/
- ls -laR android-sdk-linux/build-tools/18.1.1/
- ls -la android-sdk-linux/build-tools/18.1.1/aapt
# Just see if aapt can be run now it's been installed
- file ./android-sdk-linux/build-tools/18.1.1/aapt
script: "./buildstuff.sh"