-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
34 lines (27 loc) · 920 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
language: java
jdk:
- openjdk11
- oraclejdk11
os:
- linux
- osx
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/
# Run commands before TravisCI install step only in some cases
# More info: https://docs.travis-ci.com/user/multi-os/#example-multi-os-build-matrix
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
# Override default install process on TravisCI
# Avoid default `gradlew assemble` execution. Be explicit about it on the `script` section.
# More info: https://github.com/travis-ci/travis-ci/issues/8667
install: true
# Build pipeline
# Compile before running the tests in order to easily check which task could be failing.
script:
- ./gradlew assemble --warning-mode all
- ./gradlew check --warning-mode all