-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
46 lines (37 loc) · 1.12 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
language: android
# Use the Travis Container-Based Infrastructure
sudo: false
jdk:
- oraclejdk8
env:
global:
- ANDROID_BUILD_TOOLS_VERSION=25.0.2
- ADB_INSTALL_TIMEOUT=20 # install timeout in minutes (2 minutes by default)
matrix:
- ANDROID_TARGET=android-22 ANDROID_ABI=armeabi-v7a
android:
components:
- tools # to get the new `repository-11.xml`
- tools # to install new Android SDK tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- $ANDROID_TARGET
- android-25
# Support library
- extra-android-support
- extra-android-m2repository
# System images
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
before_script:
- chmod +x ./gradlew
# Emulator Management: Create, Start and Wait
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
script:
- ./gradlew clean
- ./gradlew check # Local unit tests
- ./gradlew connectedCheck # Instrumented unit tests
- ./gradlew jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)