forked from mnipper/AndroidSurvey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (43 loc) · 2 KB
/
.travis.yml
File metadata and controls
51 lines (43 loc) · 2 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
language: java
jdk: oraclejdk7
env:
matrix:
- ANDROID_SDKS=android-18,sysimg-18 ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a
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
- wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
- tar -xzf android-sdk_r22.3-linux.tgz
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# manually set sdk.dir variable, according to local paths
- echo "sdk.dir=$ANDROID_HOME" > local.properties
# "echo yes" to accept license from android sdk manager tool
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-18 --no-ui --force > /dev/null
- echo yes | android update sdk --filter sysimg-18 --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
# for gradle output style only needed for Travis, not for standard xterm
- export TERM=dumb
# Gradle
- wget http://services.gradle.org/distributions/gradle-1.8-bin.zip
- unzip gradle-1.8-bin.zip
- export GRADLE_HOME=$PWD/gradle-1.8
- export PATH=$GRADLE_HOME/bin:$PATH
# build tools cannot be installed through "android update sdk" as of now
- wget http://dl.google.com/android/repository/build-tools_r18.1.1-linux.zip
- mkdir -p $ANDROID_HOME/build-tools
- mkdir -p $ANDROID_HOME/build-tools/android-4.3
- mkdir -p $ANDROID_HOME/build-tools/18.1.1
- unzip -qq build-tools_r18.1.1-linux.zip -d $ANDROID_HOME/build-tools/
- mv $ANDROID_HOME/build-tools/android-4.3 $ANDROID_HOME/build-tools/18.1.1
# irc notifications
notifications:
email: false
irc:
on_success: always
on_failure: always
use_notice: true
channels:
- "card.freenode.net#dukedevelopers"