-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (67 loc) · 2.44 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#http://docs.travis-ci.com/user/languages/android/
language: android
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-16
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=8 # minutes
# matrix:
# - env: LOGGED_IN_TO_PARSE_PLATFORM=YES
# - env: LOGGED_IN_TO_PARSE_PLATFORM=NO
# - ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
# - ANDROID_TARGET=android-18 ANDROID_ABI=armeabi-v7a
# - ANDROID_TARGET=android-21 ANDROID_ABI=armeabi-v7a
# I want faster builds of course, http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false
# Disable notifications via e-mail http://docs.travis-ci.com/user/notifications/
notifications:
email: false
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-24.0.2
# The SDK version used to compile your project
#- android-21
- Google Inc.:Google APIs:21
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-16
- addon-google_apis-google-17
- addon-google_apis-google-18
- addon-google_apis-google-19
- addon-google_apis-google-21
# Specify at least one system image,
# if you need to run emulator(s) during your tests
#- sys-img-armeabi-v7a-android-18
#- sys-img-armeabi-v7a-android-19
#- sys-img-armeabi-v7a-android-21
#- sys-img-x86-android-19
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET}
before_install:
# for gradle output style
- export TERM=dumb
# environment info
# - sudo chmod +x gradlew
- gradle -v
- uname -a
- echo "Android Home:$ANDROID_HOME"
# manually set sdk.dir variable, according to local paths
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- echo "Local Properties file is "
- cat local.properties
script:
- gradle clean build check jacocoTestReport assembleAndroidTest
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -s "1080x1920"
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell setprop dalvik.vm.dexopt-flags v=n,o=v
- gradle connectedCheck
after_success:
- bash <(curl -s https://codecov.io/bash)