This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
73 lines (58 loc) · 2.28 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: android
jdk:
- oraclejdk8
env:
global:
- ADB_INSTALL_TIMEOUT=10 # minutes (2 minutes by default)
android:
components:
# Use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by the project
- build-tools-23.0.2
# The SDK version used to compile the project
- android-23
# Repositories for Gradle and Maven
- extra-android-m2repository
- extra-google-m2repository
# Additional components
- extra-android-support
- extra-google-google_play_services
# Marshmallow emulators
#- addon-google_apis-google-23 # Google APIs for Marshmallow, use with sys-img-armeabi-v7a-addon-google_apis-google-23
#- sys-img-armeabi-v7a-addon-google_apis-google-23 # System image, requires android-23 and addon-google_apis-google-23, provides Google APIs
#- sys-img-armeabi-v7a-android-23 # System image, requires android-23
# KitKat emulators
- android-19
- addon-google_apis-google-19 # System image, requires android-19, provides Google APIs
- sys-img-armeabi-v7a-android-19 # System image, requires android-19
- android-21
- sys-img-armeabi-v7a-android-21
# Licenses are automatically accepted by Travis CI
licenses:
#- 'android-sdk-license-.+'
#- 'google-gdk-license-.+'
# Emulator Management: Create, Start and Wait
before_script:
- echo ANDROID_HOME=$ANDROID_HOME
- echo ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT
#- echo ********** Android SDKs **********
#- android list sdk --all --no-ui --extended
- echo ********** Android Targets **********
- android list target
#- echo no | android create avd --force --name test --target "Google Inc.:Google APIs:23" --abi "google_apis/armeabi-v7a"
#- echo no | android create avd --force --name test --target "android-23" --abi "default/armeabi-v7a"
- echo no | android create avd --force --name test --target "Google Inc.:Google APIs:19" --abi "default/armeabi-v7a"
#- echo no | android create avd --force --name test --target "android-19" --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82
script:
- gradle clean build connectedCheck
notifications:
email: false
sudo: false
cache:
directories:
- $HOME/.gradle/caches