-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.79 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
30
31
32
33
34
35
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 --filter build-tools-18.0.1 --no-ui --force
# Create and start emulator
- echo no | android create avd --force -n test -t android-17 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
before_script:
- pwd
- ls -la
- 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.0.1/
- ls -la android-sdk-linux/build-tools/18.0.1/aapt
#####
# Just see if aapt can be run now it's been installed
- file ./android-sdk-linux/build-tools/18.0.1/aapt
- chmod 777 ./buildstuff.sh
- chmod +x wait_for_emulator
- ./wait_for_emulator
script: "./buildstuff.sh"