From 4a33dcfefc3b0c6e2d87025587e46ad763ccc8ea Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 2 Oct 2018 09:38:00 +0200 Subject: [PATCH] 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. --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d39c9cb44..e9be72df9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,6 +59,7 @@ matrix: env: TEST=osx - compiler: gcc env: TEST=sonarcloud + if: env(SONAR_TOKEN) IS present git: depth: false addons: