ci(.travis) MAVEN_OPTS tweaks to speed up build.
MODIFY
.travis.yml
.travis.yml
@@ -13,7 +13,6 @@ services:
- elasticsearch
before_install:
- - export MAVEN_OPTS="-Xmx512m"
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
jdk:
@@ -39,6 +38,10 @@ matrix:
- env: ACTION='-Dapiman.gateway-test.config=amg-1'
jdk: oraclejdk8
+env:
+ global:
+ - MAVEN_OPTS="XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xmx512m"
+
install: travis_retry mvn clean install -Dinvoker.skip -Dmaven.javadoc.skip=true -Dmvn.skip.test=true -DskipTests=true -T2C -B | egrep -v 'Download|\\[exec\\] [[:digit:]]+/[[:digit:]]+|^[[:space:]]*\\[exec\\][[:space:]]*$' ; [ ${PIPESTATUS[0]} == 0 ];
script: if [[ -v COMMAND ]]; then $COMMAND; else travis_retry mvn test install -B -Dmaven.javadoc.skip=true $ACTION | egrep -v 'Download|\\[exec\\] [[:digit:]]+/[[:digit:]]+|^[[:space:]]*\\[exec\\][[:space:]]*$' ; [ ${PIPESTATUS[0]} == 0 ]; fi

ci(.travis) MAVEN_OPTS tweaks to speed up build.