-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
34 lines (34 loc) · 1008 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
language: android
sudo: required
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=25
- EMULATOR_API_LEVEL=22
- ANDROID_BUILD_TOOLS=25.0.2
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- extra-google-m2repository
- extra-android-m2repository
- android-$ANDROID_API_LEVEL
- android-$EMULATOR_API_LEVEL
- sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
licenses:
- 'android-sdk-license-.+'
- 'android-sdk-preview-license-.+'
- 'google-gdk-license-.+'
before_install:
- mkdir "$ANDROID_HOME/licenses" || true
- chmod +x gradlew
- ./gradlew dependencies || true
before_script:
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script:
- ./gradlew build connectedSampleDebugAndroidTest --stacktrace