Skip to content
This repository was archived by the owner on Oct 9, 2022. It is now read-only.

Commit dad887d

Browse files
Update .travis.yml
1 parent dc21fcb commit dad887d

File tree

1 file changed

+15
-28
lines changed

1 file changed

+15
-28
lines changed

.travis.yml

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,34 @@
11
language: android
22
jdk: oraclejdk8
3-
cache: false
3+
# Use the Travis Container-Based Infrastructure
44
sudo: false
5+
6+
cache:
7+
directories:
8+
- ${TRAVIS_BUILD_DIR}/gradle/caches/
9+
- ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/
10+
511
env:
612
global:
713
- ANDROID_API_LEVEL=25
8-
- ANDROID_BUILD_TOOLS_VERSION=25.0.2
9-
- ANDROID_ABI=armeabi-v7a
10-
- ANDROID_TAG=google_apis
11-
- EMULATOR_API_LEVEL=25
12-
- ADB_INSTALL_TIMEOUT=20
14+
- ANDROID_BUILD_TOOLS_VERSION=25.0.1
1315

1416
android:
1517
components:
18+
- tools # to get the new `repository-11.xml`
1619
- platform-tools
17-
- tools
20+
- tools # to install Android SDK tools 25.1.x
1821
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
1922
- android-$ANDROID_API_LEVEL
23+
# For Google APIs
24+
- addon-google_apis-google-$ANDROID_API_LEVEL
25+
# Google Play Services
2026
- extra-google-google_play_services
27+
# Support library
2128
- extra-android-support
29+
# Latest artifacts in local repository
2230
- extra-google-m2repository
2331
- extra-android-m2repository
24-
- android-$EMULATOR_API_LEVEL
25-
- addon-google_apis-google-$ANDROID_API_LEVEL
26-
- addon-google_apis-google-$EMULATOR_API_LEVEL
27-
- sys-img-armeabi-v7a-google_apis-$ANDROID_API_LEVEL
28-
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL
29-
30-
31-
licenses:
32-
- android-sdk-license-.+
33-
- '.+'
34-
35-
before_install:
36-
- chmod +x gradlew
37-
- mkdir "$ANDROID_HOME/licenses" || true
38-
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
39-
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
40-
41-
before_script:
42-
- echo no | android create avd --force -n test -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG
43-
- emulator -avd test -no-skin -no-audio -no-window &
44-
- android-wait-for-emulator
4532

4633
script:
4734
- ./gradlew connectedAndroidTest coveralls

0 commit comments

Comments
 (0)