This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 201
/
.travis.yml
44 lines (44 loc) · 1.89 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
sudo: required
dist: trusty
language: java
addons:
apt:
packages:
- oracle-java8-installer
- xmlstarlet
# might be useful to push reports to an S3 bucket
# artifacts:
# paths:
# - $(find $HOME -name surefire-reports | tr "\n" ":")
# - $(find $HOME -name failsafe-reports | tr "\n" ":")
# s3_region: 'us-west-2'
cache:
directories:
- $HOME/.m2
env:
global:
- NEO4J_VERSION=$(xmlstarlet sel -N maven=http://maven.apache.org/POM/4.0.0 -t -m '/maven:project/maven:properties' -v maven:version.org.neo4j bom/pom.xml)
- NEO4J_HOSTNAME=127.0.0.1 NEO4J_PORT=7474 NEO4J_USERNAME=neo4j NEO4J_PASSWORD=hibernate NEO4J_HOME=neo4j-community-$NEO4J_VERSION
before_install:
- curl http://dist.neo4j.org/neo4j-community-$NEO4J_VERSION-unix.tar.gz | tar xz
- BUILD_OPTIONS='-s settings-example.xml'
install:
- $NEO4J_HOME/bin/neo4j start
# The Maven install provided by Travis is outdated, use Maven wrapper to get the latest version
- mvn -N io.takari:maven:wrapper
- ./mvnw -v
# first run to download all the Maven dependencies without logging
- travis_wait ./mvnw $BUILD_OPTIONS -B -q -Ptest -Dcheckstyle.skip -DskipTests=true -Dmaven.javadoc.skip=true -DskipDistro=true install
before_script:
# When Neo4j is started the first time, it requires the change of the default password
- curl -vX POST http://neo4j:neo4j@$NEO4J_HOSTNAME:$NEO4J_PORT/user/neo4j/password -d"password=$NEO4J_PASSWORD"
script:
# we run checkstyle first to fail fast if there is a styling error
- ./mvnw $BUILD_OPTIONS -DskipDistro=true checkstyle:check
&& BUILD_OPTIONS+=' -Dcheckstyle.skip'
&& ./mvnw $BUILD_OPTIONS clean install
&& ./mvnw $BUILD_OPTIONS -pl neo4j -Pneo4j-http clean install
&& NEO4J_PORT=7687 ./mvnw $BUILD_OPTIONS -pl neo4j -Pneo4j-bolt clean install
before_cache:
# Do not put Hibernate OGM artifacts into the cache
- rm -r $HOME/.m2/repository/org/hibernate/ogm/