forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (63 loc) · 2.59 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
58
59
60
61
62
63
cache:
directories:
- "$HOME/.m2"
- downloads
language: java
before_install:
- rm ~/.m2/settings.xml
- unset _JAVA_OPTIONS
env:
global:
- MAVEN_OPTS=-Xmx512m
- MAVEN_VERSION=3.6.3
- TAKARI_SMART_BUILDER_VERSION=0.6.1
before_script:
- mkdir -p downloads
- export MAVEN_ZIP=apache-maven-$MAVEN_VERSION-bin.zip
- |
if [ ! -f downloads/$MAVEN_ZIP ]; then
wget -P downloads https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MAVEN_VERSION/$MAVEN_ZIP
fi
- export SMART_JAR=takari-smart-builder-$TAKARI_SMART_BUILDER_VERSION.jar
- |
if [ ! -f downloads/$SMART_JAR ]; then
wget -P downloads https://repo1.maven.org/maven2/io/takari/maven/takari-smart-builder/$TAKARI_SMART_BUILDER_VERSION/$SMART_JAR
fi
- unzip downloads/$MAVEN_ZIP
- export M2_HOME=$PWD/apache-maven-$MAVEN_VERSION
- cp downloads/$SMART_JAR $M2_HOME/lib/ext
- export PATH=$M2_HOME/bin:$PATH
- mvn --version
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 --builder smart clean install $ARGS && mvn -f src/community/pom.xml -nsu -B -U -T4 -fae -DskipTests -Prelease -PcommunityRelease --builder smart clean install $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 --builder smart -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
dist: trusty
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: openjdk11
env: ACTION=docs
name: Documentation build
- jdk: openjdk11
env: ACTION=package
name: Build release packages