Fix travis build failure for pull requests

This commit is contained in:
Andreas Dangel
2015-10-10 15:20:25 +02:00
parent 84c407f5d2
commit 6b60b4be34

View File

@ -3,7 +3,7 @@ matrix:
include:
- jdk: oraclejdk7
script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn test deploy --settings .travis-settings.xml'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn test deploy --settings .travis-settings.xml || ( [ "${TRAVIS_PULL_REQUEST}" != "false" ] && echo "Skipping Deploy - it is a pull request" )'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] || mvn test'
- jdk: oraclejdk8
script: mvn test