forked from spockframework/spock-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 969 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
language: java
sudo: false # run on container-based infrastructure
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/user-id.txt.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -fr $HOME/.gradle/caches/*/scripts/
- rm -fr $HOME/.gradle/caches/*/scripts-remapped/
- rm -fr $HOME/.gradle/caches/*/fileHashes/
- rm -fr $HOME/.gradle/jars*
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2/repository/
jdk:
- oraclejdk8
env:
matrix:
- TYPE=gradle
- TYPE=maven
global:
- GRADLE_OPTS: "-Xmx768m -Xms256m -Xss1m"
- MAVEN_OPTS: "-Xmx768m -Xms256m -Xss1m"
install: true
# Undo _JAVA_OPTIONS environment variable (https://github.com/travis-ci/travis-ci/issues/8408)
before_script:
- _JAVA_OPTIONS=
script:
- if [ "$TYPE" = "gradle" ]; then ./gradlew --no-daemon check ; fi
- if [ "$TYPE" = "maven" ]; then ./mvnw -V -B verify ; fi