forked from B3Partners/tailormap-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (49 loc) · 1.67 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
45
46
47
48
49
50
51
52
53
54
55
56
57
dist: trusty
sudo: false
language: java
addons:
postgresql: "9.5"
hosts: travis-fla4
hostname: travis-fla4
before_install:
# install up-2-date Maven version
- wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- unzip -qq apache-maven-3.3.9-bin.zip
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$M2_HOME/bin:$PATH
- export PAGER=cat
# create Flamingo database
- psql --version
- psql -U postgres -d postgres -c 'SELECT Version();'
- psql -U postgres -a -c "CREATE ROLE flamingo4 LOGIN PASSWORD 'flamingo4' SUPERUSER CREATEDB;"
- psql -U postgres -a -c 'create database flamingo4;'
- psql -U postgres -a -c 'ALTER DATABASE flamingo4 OWNER TO flamingo4;'
install:
# install without testing
#- mvn install -U -DskipTests -Dtest.skip.integrationtests=true -pl viewer-config-persistence,viewer-commons,web-commons -B -V -fae -q
- mvn install -U -DskipTests -Dtest.skip.integrationtests=true -B -V -fae -q
script:
# execute unit tests
- mvn -e clean test -B
# run integration tests on all modules except viewer-admin
- mvn -e clean verify -B -Ptravis-ci -pl '!viewer-admin'
# run integration tests on viewer-admin module only
- mvn -e clean verify -B -Ptravis-ci -pl 'viewer-admin'
# on oracle java 8 run a javadoc build to check for errors
- if [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
mvn javadoc:javadoc;
fi
# on oracle java 8 run a test-javadoc build to check for errors
- if [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
mvn javadoc:test-javadoc;
fi
jdk:
- oraclejdk8
- openjdk8
os:
- linux
matrix:
fast_finish: true
cache:
directories:
- $HOME/.m2