travis: Don't run sonarcloud in forked repositories
authorTobias Brunner <tobias@strongswan.org>
Fri, 23 Nov 2018 08:37:07 +0000 (09:37 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 30 Nov 2018 15:03:10 +0000 (16:03 +0100)
.travis.yml

index 31f4a2a..7e70df5 100644 (file)
@@ -38,7 +38,7 @@ env:
 matrix:
   include:
     - env: TEST=sonarcloud
-      if: type = push
+      if: type = push AND env(SONAR_TOKEN) IS present
       git:
         depth: false
       addons: