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

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

View File

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