forked from googlesamples/android-testing-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 1011 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
language: android
jdk: oraclejdk7
env:
matrix:
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
global:
- TERM=dumb
android:
components:
- build-tools-23.0.1
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- android-19
- android-23
- sys-img-armeabi-v7a-android-19
before_script:
# Create and start emulator
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
- adb shell input keyevent 82 &
- cd AndroidTestingBlueprint
before_cache:
- rm -f AndroidTestingBlueprint/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- AndroidTestingBlueprint/.gradle/caches/
- AndroidTestingBlueprint/.gradle/wrapper/
script:
- ./gradlew assembleDebug
- ./gradlew app:connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.android.testing.blueprint.integration.OkTest