Merge branch 'travis-fix' into pmd/5.3.x

This commit is contained in:
Andreas Dangel
2015-10-16 16:34:43 +02:00

View File

@ -1,10 +1,14 @@
language: java
before_script:
- SHOULD_DEPLOY=no
- '[ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] && SHOULD_DEPLOY=yes'
- export SHOULD_DEPLOY
matrix:
include:
- jdk: oraclejdk7
script:
- '[ "${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'
- '[ "${SHOULD_DEPLOY}" = "yes" ] && mvn test deploy --settings .travis-settings.xml || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )'
- '[ "${SHOULD_DEPLOY}" = "yes" ] || mvn test'
- jdk: oraclejdk8
script: mvn test
branches: