-
Notifications
You must be signed in to change notification settings - Fork 211
/
.travis.yml
42 lines (34 loc) · 1.34 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
language: java
# Our Git tests require information from early branches/versions so we need to make sure Travis gets everything when cloning
git:
depth: 9999
# Travis by defaults runs the following `install` command:
#
# install: mvn isntall -DskipTests=true -Dmaven.javadoc.skip=true -B -V
#
# though we have to add `-s settings.xml` for our build to work:
#
# install: mvn -s settings.xml install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
#
# But we actually want to skip this so that it doesn't take as long to fail
# so we skip the `install` phase:
install: true
# Cache the Maven repository per branch, so that we avoid downloading artifacts each time...
cache:
directories:
- $HOME/.m2
# We use JDK 8
jdk:
- oraclejdk8
env:
- MAVEN_OPTS="-Xms1524M -Xmx1524M"
# We use docker for the persistence integration tests
services:
- docker
before_script:
- sudo docker ps -a
# We have to use our local `settings.xml`, and the clustering tests require IPv4 on the Travis infrastructure
# We're also changing the Maven default logging to avoid printing out all the 'Downloading' messages which can cause the Travis
# build to fail when the log size exceeds 4MB
script:
- mvn -s settings.xml clean install -Pintegration -Ppersistence-integration -DpreferIpv4 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer=warn -B