-
Notifications
You must be signed in to change notification settings - Fork 109
/
.travis.yml
47 lines (37 loc) · 1.45 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
36
37
38
39
40
41
42
43
44
45
46
47
language: java
jdk:
- oraclejdk8
before_install:
# # install ed25519-java
# - git clone https://github.com/sublimator/ed25519-java.git
# - cd ed25519-java
# - mvn install
# - cd ..
# Download the SDK
- wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
- tar -zxf android-sdk_r23.0.2-linux.tgz
- export ANDROID_HOME=`pwd`/android-sdk-linux
# Set the $PATH so all the tools like dx,aapt etc work
- export PATH=$PATH:$ANDROID_HOME/tools
- export PATH=$PATH:$ANDROID_HOME/platform-tools
- export PATH=$PATH:$ANDROID_HOME/build-tools
- sudo apt-get install expect
- echo $PWD
- source .license-accept-android.sh
- license_accepted_android update sdk --force -u -t platform-tools
# this command requires platform-tools installed first to work
- android list sdk -a -u -e
# actually get the packages we want
- license_accepted_android update sdk --force -a -u -t tools,platform-tools,build-tools-21.1.1,android-10,extra-android-support
# useful information to debug problems with previous steps
- ls -lah ${ANDROID_HOME}
- ls -lah ${ANDROID_HOME}/platforms
- ls -lah ${ANDROID_HOME}/build-tools
- ls -lah ${ANDROID_HOME}/tools
- ls -lah ${ANDROID_HOME}/platform-tools
# Do this last because it takes so damn long, it's quicker to iterate on
# refinements to prior section
- sudo apt-get update
- sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch
# -e shows full stack trace on errors
script: mvn -X -e install