travis: Only build sonarcloud target if the token is available

That's not the case for pull requests that don't have access to
encrypted tokens/environment variables.
This commit is contained in:
Tobias Brunner
2018-10-02 09:38:00 +02:00
parent b98db90763
commit 4a33dcfefc
+1
View File
@@ -59,6 +59,7 @@ matrix:
env: TEST=osx
- compiler: gcc
env: TEST=sonarcloud
if: env(SONAR_TOKEN) IS present
git:
depth: false
addons: