-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (40 loc) · 1.41 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
# Enable Docker
sudo: false
# Android environment setup
language: android
jdk:
- oraclejdk8
android:
components:
# Platform tools
- platform-tools
- tools
# The BuildTools version
- build-tools-23.0.3
# The SDK version
- android-23
# Extras
- extra-android-support
- extra-android-m2repository
# Env configuration
env:
global:
- ADB_INSTALL_TIMEOUT=10
matrix:
- ANDROID_SDKS=android-10 ANDROID_TARGET=android-10 ANDROID_ABI=armeabi
- ANDROID_SDKS=android-19,sysimg-19 ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
# The following configuration causes the Travis job to exceed the time limit...
#- ANDROID_SDKS=android-21,sysimg-21 ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
# Emulator Management: Create, Start and Wait
before_install:
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
before_script:
- android-wait-for-emulator
- adb shell input keyevent 82 &
# The prepare step is needed to work around an issue with the support library dependencies in the gradle plugin
script: ./gradlew clean prepareComAndroidSupportSupportVLibrary && travis_wait 50 ./gradlew --stacktrace connectedCheck
# Print reports
after_failure: find . -name TEST-\*.xml -print -exec cat {} \;
# Code coverage
after_success: ./gradlew jacocoFullReport coveralls