Call sonarqube after success.

This commit is contained in:
Erik C. Thauvin 2019-04-02 09:19:54 -07:00
parent 61827e731a
commit dfee57d411

View file

@ -12,8 +12,8 @@ jdk:
before_install: before_install:
- chmod +x gradlew - chmod +x gradlew
after_install: after_success:
- | - |
if [ "$TRAVIS_TEST_RESULT" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then if [ "$TRAVIS_TEST_RESULT" == 0 ] && [ "$TRAVIS_JDK_VERSION" == oraclejdk8 ]; then
sonar-scanner ./gradlew sonarqube -Dsonar.login=${SONAR_TOKEN}
fi fi