diff --git a/.travis.yml b/.travis.yml index 86be84d334..1611b57653 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ matrix: script: mvn test - jdk: oraclejdk8 script: - - '[ "${SHOULD_DEPLOY}" = "yes" ] && mvn test deploy --settings .travis-settings.xml || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )' - - '[ "${SHOULD_DEPLOY}" = "yes" ] || mvn test' + - '[ "${SHOULD_DEPLOY}" = "yes" ] && MAVEN_OPTS="-Xmx500m" mvn test deploy --settings .travis-settings.xml || ( [ "${SHOULD_DEPLOY}" != "yes" ] && echo "Skipping Deploy" )' + - '[ "${SHOULD_DEPLOY}" = "yes" ] || MAVEN_OPTS="-Xmx500m" mvn test' branches: except: - /^pmd_releases\/\d/