Skip to content

Commit 6b2d9e1

Browse files
committed
Fixed Travis #235.
1 parent 79ef133 commit 6b2d9e1

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.travis.yml

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
before_install: cd source-code
22

33
language: android
4-
sudo: true
54
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+
614
env:
715
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
917

1018
android:
1119
components:
20+
- tools # to get the new repository-11.xml
1221
- platform-tools
13-
- tools
22+
- tools # to install Android SDK tools
1423
- 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
1727
# Google Play Services
1828
- extra-google-google_play_services
1929
# Support library
@@ -22,21 +32,10 @@ android:
2232
- extra-google-m2repository
2333
- extra-android-m2repository
2434
# 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
3736

3837
script:
39-
- ./gradlew check connectedAndroidTest
38+
- ./gradlew assembleRelease
4039

4140
notifications:
4241
email:

0 commit comments

Comments
 (0)