|
1 | 1 | language: android |
2 | 2 | jdk: oraclejdk8 |
3 | | -cache: false |
| 3 | +# Use the Travis Container-Based Infrastructure |
4 | 4 | sudo: false |
| 5 | + |
| 6 | +cache: |
| 7 | + directories: |
| 8 | + - ${TRAVIS_BUILD_DIR}/gradle/caches/ |
| 9 | + - ${TRAVIS_BUILD_DIR}/gradle/wrapper/dists/ |
| 10 | + |
5 | 11 | env: |
6 | 12 | global: |
7 | 13 | - 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 |
13 | 15 |
|
14 | 16 | android: |
15 | 17 | components: |
| 18 | + - tools # to get the new `repository-11.xml` |
16 | 19 | - platform-tools |
17 | | - - tools |
| 20 | + - tools # to install Android SDK tools 25.1.x |
18 | 21 | - build-tools-$ANDROID_BUILD_TOOLS_VERSION |
19 | 22 | - android-$ANDROID_API_LEVEL |
| 23 | + # For Google APIs |
| 24 | + - addon-google_apis-google-$ANDROID_API_LEVEL |
| 25 | + # Google Play Services |
20 | 26 | - extra-google-google_play_services |
| 27 | + # Support library |
21 | 28 | - extra-android-support |
| 29 | + # Latest artifacts in local repository |
22 | 30 | - extra-google-m2repository |
23 | 31 | - 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 |
45 | 32 |
|
46 | 33 | script: |
47 | 34 | - ./gradlew connectedAndroidTest coveralls |
0 commit comments