-
Notifications
You must be signed in to change notification settings - Fork 88
/
.travis.yml
36 lines (31 loc) · 1.04 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
language: android
sudo: false
env:
global:
# Initiating clean Gradle output
- TERM=dumb
# Amount of memory granted to Gradle JVM
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
# General Android settings used in builds
- ANDROID_TARGET=android-19
before_install:
- chmod a+x gradlew
- gradle -v
- ln -s app.properties-prod assets/app.properties
- if [ `uname -m` = x86_64]; then wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin -O ndk.bin; else wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86.bin -O ndk.bin; fi
- chmod a+x ndk.bin
- ./ndk.bin -y | egrep -v ^Extracting
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r10d
- export PATH=${PATH}:${ANDROID_NDK_HOME}
android:
components:
- android-21
# We are using the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version we are using for our project
- build-tools-21.1.2
script:
- ${ANDROID_NDK_HOME}/ndk-build
- ./gradlew assembleDebug
- find . -name '*.apk' -exec ls -l {} \;