Fixes travis issue with env variables on PRs (#598)

Found by PyvesB on #596
This commit is contained in:
Rsl1122 2018-06-02 12:36:21 +03:00 committed by GitHub
parent bd06c709f8
commit ec30871444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,8 +19,9 @@ jdk:
- oraclejdk8
script:
- pwd
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
- "$TRAVIS_PULL_REQUEST" = "true" || mvn test
- "$TRAVIS_PULL_REQUEST" = "false" || mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.sonar/cache'