forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (50 loc) · 2.17 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
sudo: true
dist: trusty
cache:
directories:
- "$HOME/.m2"
language: java
before_install:
- rm ~/.m2/settings.xml
- unset _JAVA_OPTIONS
env:
global:
- MAVEN_OPTS=-Xmx512m
before_script:
- wget https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.tar.gz
- tar zxf apache-maven-3.6.0-bin.tar.gz
- export M2_HOME=$PWD/apache-maven-3.6.0
- wget -P $M2_HOME/lib/ext http://repo1.maven.org/maven2/io/takari/maven/takari-smart-builder/0.6.1/takari-smart-builder-0.6.1.jar
- export PATH=$M2_HOME/bin:$PATH
install:
- if [ "$ACTION" == "docs" ]; then sudo pip install sphinx requests; fi
script:
- if [ "$ACTION" == "build" ]; then mvn -f src/pom.xml -B -U -T3 -fae -Prelease clean install --builder smart $ARGS && mvn -f src/community/pom.xml -nsu -B -U -T4 -fae -DskipTests -Prelease -PcommunityRelease clean install --builder smart $COMMUNITY_ARGS; fi
- if [ "$ACTION" == "build" ]; then grep -H "<testsuite" `find . -iname "TEST-*.xml"` | sed 's/.\/\(.*\)\/target.*:<testsuite .* name="\(.*\)" time="\([^"]*\)" .*/\3\t\2\t\1/' | sort -nr | head -50; fi
- if [ "$ACTION" == "docs" ]; then mvn -f doc/en install; fi
- if [ "$ACTION" == "package" ]; then mvn -f src/pom.xml -B -U -T3 -fae -Prelease,communityRelease clean install -DskipTests; mvn -f src/pom.xml assembly:attached -nsu; mvn -f src/community/pom.xml assembly:attached -nsu; fi
before-caching:
- rm -rf $HOME/.m2/repository/org/geotools
- rm -rf $HOME/.m2/repository/org/geowebcache
- rm -rf $HOME/.m2/repository/org/geoserver
notifications:
email:
on_success: never
on_failure: never
matrix:
include:
- jdk: oraclejdk8
env: ACTION=build ARGS="-Dfmt.skip=true" COMMUNITY_ARGS=$ARGS
name: Java 8 build
- jdk: openjdk11
env: ACTION=build ARGS="-Dfmt.skip=true" COMMUNITY_ARGS=$ARGS
name: Java 11 build
- jdk: openjdk11
env: ACTION=build ARGS="-Dfmt.action=check -Dqa -DskipTests=true" COMMUNITY_ARGS="-Dfmt.action=check -DskipTests=true"
name: QA build on Java 11
- jdk: oraclejdk8
env: ACTION=docs
name: Documentation build
- jdk: oraclejdk8
env: ACTION=package
name: Build release packages