if env variable exists then run sonar
@@ -5,4 +5,4 @@ addons:
sonarcloud:
organization: "improbable-keanu"
script:
- - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi'
\ No newline at end of file
+ - 'if [[ ! -z $SONAR_TOKEN ]]; then sonar-scanner; fi'
\ No newline at end of file
