forked from mendhak/gpslogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (47 loc) · 1.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo: false
language: android
jdk: oraclejdk8
notifications:
email: false
#env:
# - ANDROID_HOME=$HOME/android-sdk ZIPNAME=sdk-tools-linux-3859397.zip
android:
components:
- tools
- platform-tools
- build-tools-26.0.2
- build-tools-28.0.3
- extra-android-support
- extra-android-m2repository
- extra-google-m2repository
- extra-android-m2repository
- extra-google-google_play_services
- android-27
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_cache:
# Do not cache a few Gradle files/directories (see https://docs.travis-ci.com/user/languages/java/#Caching)
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
# Android SDK
- $HOME/android-sdk-dl
- $HOME/android-sdk
# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Android build cache (see http://tools.android.com/tech-docs/build-cache)
- $HOME/.android/build-cache
before_install:
- ./gradlew --version
#- yes | sdkmanager "platforms;android-27"
before_script:
- echo '"Build..."' && echo -en 'travis_fold:start:script.build\\r'
- ./gradlew assembleDebugUnitTest -Dpre-dex=false
- echo -en 'travis_fold:end:script.build\\r'
script:
# skips predex on travis, takes too long, too much memory
./gradlew testDebugUnitTest -Dpre-dex=false -q