Skip to content

Commit 03e690e

Browse files
committed
Add .travis.yml
1 parent 1471eb2 commit 03e690e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
sudo: required
2+
dist: trusty
3+
language: java
4+
jdk:
5+
- oraclejdk8
6+
addons:
7+
apt:
8+
packages:
9+
- oracle-java8-installer
10+
env:
11+
global:
12+
- PROJECTS=$( find . -name pom.xml -print -or -path '*/target/*' -prune | sort | xargs -n 1 dirname )
13+
cache:
14+
directories:
15+
- $HOME/.m2
16+
install:
17+
# The Maven install provided by Travis is outdated, use Maven wrapper to get the latest version
18+
- mvn -N io.takari:maven:wrapper
19+
- ./mvnw -v
20+
# first run to download all the Maven dependencies without logging
21+
- MVNW=$( readlink -f ./mvnw ) ;
22+
for project in $PROJECTS ;
23+
do
24+
pushd "$project" ;
25+
$MVNW -B -q clean dependency:resolve || exit $? ;
26+
popd ;
27+
done
28+
script:
29+
# Tests are skipped, because for most demos they require a specific environment
30+
- MVNW=$( readlink -f ./mvnw ) ;
31+
for project in $PROJECTS ;
32+
do
33+
pushd "$project" ;
34+
$MVNW clean package -DskipTests || exit $? ;
35+
popd ;
36+
done

0 commit comments

Comments
 (0)