Skip to content

Commit 733dfc1

Browse files
committed
travis.yml
1 parent e9b5b5b commit 733dfc1

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

.travis.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
language: android
2-
android:
3-
components:
4-
- build-tools-20
5-
6-
notifications:
7-
email: true
1+
language: java
2+
jdk: oraclejdk7
3+
env:
4+
matrix:
5+
- ANDROID_TARGET=android-20 ANDROID_ABI=armeabi-v7a
86

97
before_install:
8+
# Install base Android SDK
9+
- sudo apt-get update -qq
10+
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch > /dev/null; fi
11+
- wget http://dl.google.com/android/android-sdk_r23-linux.tgz
12+
- tar xzf android-sdk_r23-linux.tgz
13+
- export ANDROID_HOME=$PWD/android-sdk-linux
14+
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
1015

11-
# for gradle output style
12-
- export TERM=dumb
13-
14-
# environment info
15-
- ./gradlew -v
16-
- uname -a
16+
# Gradle
17+
- wget http://services.gradle.org/distributions/gradle-1.12-bin.zip
18+
- unzip gradle-1.12-bin.zip
19+
- export GRADLE_HOME=$PWD/gradle-1.12
20+
- export PATH=$GRADLE_HOME/bin:$PATH
1721

18-
# Let's try to build...
19-
#install: ./gradlew clean build
22+
# Install required components
23+
# For a full list, run `android list sdk -a --extended`
24+
# Note that sysimg-19 downloads only ARM, because only the first license query is accepted.
25+
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
26+
- echo yes | android update sdk --all --filter build-tools-20.0.0 --no-ui --force > /dev/null
27+
- echo yes | android update sdk --filter android-20 --no-ui --force > /dev/null
28+
- echo yes | android update sdk --filter sys-img-x86-android-19 --no-ui --force > /dev/null
29+
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
30+
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
2031

21-
script: ./gradlew clean build
32+
install:
33+
- ./gradlew assemble

0 commit comments

Comments
 (0)