forked from googlearchive/firebase-jobdispatcher-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 1.21 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
# https://docs.travis-ci.com/user/languages/android
language: android
jdk: oraclejdk8
# Container builds don't have enough memory to reliably finish without being
# killed, so pretend sudo is required so we don't use the container infra.
# See: https://github.com/travis-ci/travis-ci/issues/5582
sudo: required
env:
global:
- ADB_INSTALL_TIMEOUT=10 # Default is 2 minutes, bump to 10
android:
components:
- tools
- platform-tools
- android-25
- build-tools-25.0.0
- extra-android-m2repository
- extra-google-m2repository
- sys-img-armeabi-v7a-android-16
- sys-img-armeabi-v7a-android-17
- sys-img-armeabi-v7a-android-18
- sys-img-armeabi-v7a-android-19
- sys-img-armeabi-v7a-android-21
# "avoid uploading the cache after every build"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
script:
# Build the library + run unit tests, run device tests, build the test app
- ./gradlew jobdispatcher:build testapp:assemble