-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
executable file
·31 lines (30 loc) · 1.62 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
language: java
jdk: oraclejdk7
before_install:
# required libs for android build tools
- sudo apt-get update
- sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch
# for gradle output style
- export TERM=dumb
# newer version of gradle
- wget http://services.gradle.org/distributions/gradle-1.10-bin.zip
- unzip -qq gradle-1.10-bin.zip
- export GRADLE_HOME=$PWD/gradle-1.10
- export PATH=$GRADLE_HOME/bin:$PATH
- chmod +x gradlew
# just to test gradle version, against our provided one
- gradle -v
# newest Android SDK 22.3
- 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
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
# Don't really need this (NDK stuff) for MyoMote, but figured I'd leave it here for anyone who forks it. :)
# newest Android NDK
#- if [ `uname -m` = x86_64]; then wget http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86_64.tar.bz2 -O ndk.tgz; else wget http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86.tar.bz2 -O ndk.tgz; fi
#- tar -xf ndk.tgz
#- export ANDROID_NDK_HOME=`pwd`/android-ndk-r9c
#- 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 -a -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-19,build-tools-19.1.0,extra-google-google_play_services,extra-google-m2repository --force --no-ui