Added check for pull request.

This commit is contained in:
Erik C. Thauvin 2019-04-02 09:47:10 -07:00
parent ed81885af6
commit 2088a07ab5

View file

@ -9,6 +9,6 @@ before_install:
after_success:
- |
if [ "$TRAVIS_TEST_RESULT" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
if [ "${TRAVIS_PULL_REQUEST}" != "false" ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
./gradlew sonarqube -Dsonar.login=${SONAR_TOKEN} -Dsonar.organization=${SONAR_GITHUB}
fi