-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
45 lines (37 loc) · 901 Bytes
/
.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
language: android
jdk:
- oraclejdk8
android:
components:
# - tools
# - platform-tools
# - tools
- build-tools-28.0.2
# - android-27
# - extra-android-support
# - extra-android-m2repository
# - extra-google-m2repository
env:
- FLAVOUR=testDebug
- FLAVOUR=testRelease
script:
- "./gradlew clean $FLAVOUR"
notifications:
email: false
sudo: false
before_install:
- yes | sdkmanager "platforms;android-28"
# Caching according to the docs at https://docs.travis-ci.com/user/languages/java/#Projects-Using-Gradle
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# We only build on these branches and on release tags, which are tagged r[0-9]+.
branches:
only:
- master
- development
- /^r\d+$/