/
.travis.yml
84 lines (67 loc) · 1.89 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: android
jdk:
- oraclejdk8
notifications:
email:
- justcoxier@gmail.com
- aliezted@gmail.com
env:
matrix:
- TEST=unit
- TEST=android ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
- TEST=android ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
- TEST=android ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
global:
- ADB_INSTALL_TIMEOUT=10
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
sudo: required
android:
components:
- tools
- platform-tools
- tools
# looking for update
- build-tools-25.0.2
- build-tools-24.0.1
- build-tools-23.0.2
- android-22
- android-23
- android-24
- android-25
- extra-android-m2repository
- extra
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-19
- sys-img-armeabi-v7a-android-21
- sys-img-armeabi-v7a-android-22
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- sudo apt-get update
addons:
apt_packages:
- pandoc
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
before_script:
- android list targets
- ./gradlew clean
- ./create_avd.sh
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- ./building.sh
- ./run_tests.sh
after_script:
- "pandoc $TRAVIS_BUILD_DIR/parsingplayer/build/reports/androidTests/connected/index.html -t plain | sed -n '/^Failed tests/,/default-package/p'"
- cat logcat.log; pkill -KILL -f adb
after_failure:
- "pandoc $TRAVIS_BUILD_DIR/sample/build/reports/androidTests/connected/index.html -t plain | sed -n '/^Failed tests/,/default-package/p'"
- cat logcat.log; pkill -KILL -f adb