* tidy up pom to remove redundant section * provide simple fall back for building non branch changes in travis * Add -s .settings.xml to .mvn/maven.config
18 lines
612 B
YAML
18 lines
612 B
YAML
sudo: false
|
||
cache:
|
||
directories:
|
||
- $HOME/.m2
|
||
language: java
|
||
jdk:
|
||
- oraclejdk8
|
||
services:
|
||
- redis-server
|
||
install: true
|
||
# The environment variable ${TRAVIS_PULL_REQUEST} is set to "false" when the build
|
||
# is for a normal branch commit. When the build is for a pull request, it will
|
||
# contain the pull request’s number.
|
||
script:
|
||
- '[ "${TRAVIS_PULL_REQUEST}" != "false" ] || ./mvnw -s .settings.xml package -Pfull -U -Dmaven.test.redirectTestOutputToFile=false'
|
||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || ./mvnw -s .settings.xml package -DskipTests -U -Dmaven.test.redirectTestOutputToFile=false'
|
||
|