forked from koral--/android-gif-drawable
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
39 lines (37 loc) · 1.63 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
branches:
except:
- dev
language:
- java
jdk:
- openjdk7
before_install:
# required libs for android build tools
- if [ `uname -m` = x86_64 ]; then sudo apt-get update; fi
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
# for gradle output style
- export TERM=dumb
# newer version of gradle
- export GRADLE_VERSION=1.11
- wget http://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip
- unzip -qq gradle-$GRADLE_VERSION-bin.zip
- export GRADLE_HOME=$PWD/gradle-$GRADLE_VERSION
- export PATH=$GRADLE_HOME/bin:$PATH
# just to test gradle version, against our provided one
- gradle -v
- wget http://dl.google.com/android/android-sdk_r22.6.1-linux.tgz
- tar xzf android-sdk_r22.6.1-linux.tgz
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# newest Android NDK
- if [ `uname -m` = x86_64 ]; then wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2 -O ndk.tgz; else wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2 -O ndk.tgz; fi
- tar -xf ndk.tgz
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r9d
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${ANDROID_NDK_HOME}
# manually set sdk.dir variable, according to local paths
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo yes | android update sdk -t tools,platform-tools,android-19,build-tools-19.0.3 --force --no-ui
# verify files exist in right paths
- find $ANDROID_HOME/build-tools
script:
- gradle build --info