forked from hibernate/hibernate-test-case-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 867 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
sudo: required
dist: trusty
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
env:
global:
- PROJECTS=$( find . -name pom.xml -print -or -path '*/target/*' -prune | sort | xargs -n 1 dirname )
cache:
directories:
- $HOME/.m2
install:
# 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
- MVNW=$( readlink -f ./mvnw ) ;
for project in $PROJECTS ;
do
pushd "$project" ;
$MVNW -B -q clean package -DskipTests=true || exit $? ;
popd ;
done
script:
- MVNW=$( readlink -f ./mvnw ) ;
for project in $PROJECTS ;
do
pushd "$project" ;
$MVNW clean verify || exit $? ;
popd ;
done