1
1
before_install : cd source-code
2
2
3
3
language : android
4
- sudo : true
5
4
jdk : oraclejdk8
5
+ # Turn off caching to avoid any caching problems
6
+ cache : false
7
+ sudo : true
8
+
9
+ cache :
10
+ directories :
11
+ - ${TRAVIS_BUILD_DIR}/gradle/caches/
12
+ - ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/
13
+
6
14
env :
7
15
matrix :
8
- - ADB_INSTALL_TIMEOUT=12 ANDROID_BUILD_TOOLS_VERSION=23.0.2 ANDROID_TARGET=android-23 ANDROID_ABI=armeabi-v7a
16
+ - ANDROID_API_LEVEL=23 ADB_INSTALL_TIMEOUT=12 ANDROID_BUILD_TOOLS_VERSION=23.0.2 ANDROID_ABI=armeabi-v7a ANDROID_TAG=google_apis
9
17
10
18
android :
11
19
components :
20
+ - tools # to get the new repository-11.xml
12
21
- platform-tools
13
- - tools
22
+ - tools # to install Android SDK tools
14
23
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
15
- - $ANDROID_TARGET
16
- - android-23
24
+ - android-$ANDROID_API_LEVEL
25
+ # For Google APIs
26
+ - addon-google_apis-google-$ANDROID_API_LEVEL
17
27
# Google Play Services
18
28
- extra-google-google_play_services
19
29
# Support library
@@ -22,21 +32,10 @@ android:
22
32
- extra-google-m2repository
23
33
- extra-android-m2repository
24
34
# Specify at least one system image,
25
- - sys-img-armeabi-v7a-$ANDROID_TARGET
26
-
27
- before_script :
28
- # Create and start emulator
29
- - echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
30
- - emulator -avd test -no-skin -no-audio -no-window &
31
- - android-wait-for-emulator
32
- - sleep 10
33
- - adb shell settings put global window_animation_scale 0 &
34
- - adb shell settings put global transition_animation_scale 0 &
35
- - adb shell settings put global animator_duration_scale 0 &
36
- - adb shell input keyevent 82 &
35
+ - sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
37
36
38
37
script :
39
- - ./gradlew check connectedAndroidTest
38
+ - ./gradlew assembleRelease
40
39
41
40
notifications :
42
41
email :
0 commit comments