-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
63 lines (52 loc) · 1.43 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
language: android
sudo: false
jdk: oraclejdk8
env:
matrix:
- ANDROID_TARGET=android-24 ANDROID_ABI=armeabi-v7a
global:
# wait up to 10 minutes for adb to connect to emulator
- ADB_INSTALL_TIMEOUT=2
android:
components:
- platform-tools
- tools
- build-tools-24.0.0
- android-24
# Additional components
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
# Emulator for the tests
- sys-img-armeabi-v7a-android-24
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:
- android-wait-for-emulator
- adb devices
- adb shell input keyevent 82 &
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