forked from hibernate/hibernate-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 971 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
sudo: required
dist: trusty
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
env:
global:
- PROJECTS=$( find hibernate-search -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 dependency:resolve || exit $? ;
popd ;
done
script:
# Tests are skipped, because for most demos they require a specific environment
- MVNW=$( readlink -f ./mvnw ) ;
for project in $PROJECTS ;
do
pushd "$project" ;
$MVNW clean package -DskipTests || exit $? ;
popd ;
done