# Use it as a wrapper to your build command, eg: ./travis-sonarqube.sh make VERBOSE=1
# On Mac OSX or with pull requests, you don't want to run SonarQube but to exec the build command directly.
# Use it as a wrapper to your build command, eg: ./travis-sonarqube.sh make VERBOSE=1
# On Mac OSX or with pull requests, you don't want to run SonarQube but to exec the build command directly.
# See https://docs.travis-ci.com/user/sonarqube/ for more info on tokens
# don't show the token in the logs
set +x
# See https://docs.travis-ci.com/user/sonarqube/ for more info on tokens
# don't show the token in the logs
set +x
-sonar-scanner -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN \
- | grep -v 'INFO: Parsing /home/travis/build/simgrid/simgrid/Testing/CoverageInfo' \
+sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN 2>&1 \
+ | grep -v 'INFO: Parsing /home/travis/build/simgrid/simgrid/Testing/CoverageInfo' \