-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml~
66 lines (55 loc) · 1.64 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
language: android
sudo: false
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=10
android:
components:
- platform-tools
- tools
- build-tools-23.0.2
- android-23
# Additional components
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
# Emulator for the tests
- sys-img-armeabi-v7a-android-18
cache:
directories:
- $HOME/.gradle/caches/2.8
- $HOME/.gradle/caches/jars-1
- $HOME/.gradle/daemon
- $HOME/.gradle/native
- $HOME/.gradle/wrapper
addons:
apt_packages:
- pandoc
artifacts:
paths:
- $(git ls-files -o | grep build/outputs | tr "\n" ":")
before_install:
- pip install --user codecov
before_script:
- echo no | android create avd --force --name test --target $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
script:
- ./gradlew check -PdisablePreDex --continue --stacktrace
- android-wait-for-emulator
- adb devices
- adb shell input keyevent 82 &
- ./gradlew connectedAndroidTest -PdisablePreDex --continue --stacktrace
- rm /home/travis/.gradle/caches/2.8/plugin-resolution/cache.properties.lock
after_success:
- ./gradlew jacocoFullReport
- codecov
after_failure:
- pandoc builder/build/reports/tests/index.html -t plain | sed -n '/^Failed tests/,/default-package/p'
after_script:
# print lint results details
- for f in app/build/outputs/lint-results.html; do pandoc $f -t plain; done
- for f in data/build/outputs/lint-results.html; do pandoc $f -t plain; done