Skip to content

Commit 1838c01

Browse files
committed
travis
1 parent 9e47539 commit 1838c01

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: java
2+
jdk: oraclejdk7
3+
env:
4+
matrix:
5+
- ANDROID_TARGET=android-20 ANDROID_ABI=armeabi-v7a
6+
7+
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
15+
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
21+
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
31+
32+
install:
33+
- ./gradlew assemble

0 commit comments

Comments
 (0)