-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.travis.yml
56 lines (44 loc) · 1.29 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
50
51
52
53
54
55
56
language: android
notifications:
email: false
sudo: false
jdk:
- oraclejdk8
env:
global:
- ADB_INSTALL_TIMEOUT=10 # default is 2 minutes and sometimes is not enough
- ANDROID_ABI=armeabi-v7a # x86 is not supported yet :(
- BUILD_TOOLS_VERSION=25.0.0
- COMPILE_SDK_VERSION=25
- GRADLE_OPTS="-Xmx2048m -Xms512m"
matrix:
- ANDROID_TARGET_VERSION=15
- ANDROID_TARGET_VERSION=16
- ANDROID_TARGET_VERSION=19
- ANDROID_TARGET_VERSION=21
- ANDROID_TARGET_VERSION=24
android:
components:
- platform-tools
- tools
- build-tools-$BUILD_TOOLS_VERSION
- android-$COMPILE_SDK_VERSION
- extra-android-m2repository
- sys-img-$ANDROID_ABI-android-$ANDROID_TARGET_VERSION
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Create emulator configuration and start it
before_install:
# reply 'no' to 'Create custom emulator configuration?'
- echo no | android create avd --force --name test --target "android-$ANDROID_TARGET_VERSION" --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
before_script:
- android-wait-for-emulator
# unlock screen:
- adb shell input keyevent 82
script:
- ./gradlew test connectedAndroidTest