diff --git a/.travis.yml b/.travis.yml index a10f3a28b..01f3ba60b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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' \ No newline at end of file + - '$HOME/.sonar/cache'