-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
41 lines (34 loc) · 878 Bytes
/
.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
language: android
dist: trusty
jdk: oraclejdk8
env:
global:
- ADB_INSTALL_TIMEOUT=8
matrix:
- ANDROID_TARGET=21
- ANDROID_TARGET=22
android:
components:
- android-22
- android-21
- android-26
- build-tools-26.0.2
- sys-img-armeabi-v7a-android-22
- sys-img-armeabi-v7a-android-21
cache:
directories:
- $HOME/.gradle/caches/4.1
- $HOME/.gradle/caches/jars-1
- $HOME/.gradle/daemon
- $HOME/.gradle/native
- $HOME/.gradle/wrapper
before_script:
- echo no | android create avd --force -n test -t android-$ANDROID_TARGET --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- cd src
- ./gradlew clean assemble -PdisablePreDex -q
- ./gradlew connectedAndroidTest --console=plain
- ./gradlew test --console=plain