forked from ripple-unmaintained/ripple-lib-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (42 loc) · 1.52 KB
/
.travis.yml
File metadata and controls
53 lines (42 loc) · 1.52 KB
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
48
49
50
51
52
53
language: java
before_install:
# Download the SDK
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
- tar -zxf android-sdk_r22.3-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
# Create our nifty function ;)
- |
function license_accepted_android()
{
expect -c "$(cat <<DOC
set timeout -1;
spawn android $@;
expect {
"Do you accept the license" { exp_send "y\r" ; exp_continue }
eof
}
DOC
)"
}
- 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-19.0.3,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