forked from rapidftr/RapidFTR-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 1.8 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
40
41
42
43
language: java
jdk: oraclejdk7
env:
global:
- ANDROID_HOME=$HOME/android-sdk-linux
- secure: "eATae5kWD2tL3xtUdQjk4T5RWn4zv5OS4QXjwL9q/E4ntzge3rVPRGVSyS5/\nL/d48QLlliDzC6d7ycFVyEZC0OLzpHNER56vhP4YY9yfLygHr+NQJizPEiMJ\nPj5vUu9+qfOb3icQuQYDamuOCT7CxnVXSxVApfpFSSGz1YFpwfs="
matrix:
# - ANDROID_SDKS=android-8 ANDROID_TARGET=android-8 ANDROID_ABI=armeabi
# - ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi
- ANDROID_SDKS=android-15,sysimg-17 ANDROID_TARGET=android-15 ANDROID_ABI=armeabi-v7a
# - ANDROID_SDKS=android-17,sysimg-17 ANDROID_TARGET=android-17 ANDROID_ABI=armeabi-v7a
branches:
only:
- master
- release1
before_install:
- export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Android SDK tools needs ia32-libs in order to run on 64 bit systems, but it was not installing on Travis
# To debug apt-get problems, use: "apt-get -o Debug::pkgProblemResolver=yes install ..." and check for broken packages
- 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 -nv http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
- tar xfz android-sdk_r21.0.1-linux.tgz -C ~
- android --silent update sdk --filter platform-tools,android-8,$ANDROID_SDKS,extra-android-support --no-ui --force
- echo no | android --silent create avd --name rapidftr --target $ANDROID_TARGET --abi $ANDROID_ABI --skin QVGA --sdcard 50M
install: echo
script: mvn clean test
# script: mvn -P with-emulator clean install
notifications:
email: false
irc:
channels:
- "irc.freenode.org#rapidftr"
template:
- "[%{repository}] [%{commit}] [%{author}] %{message} - %{build_url}"