]> git.ipfire.org Git - people/ms/strongswan.git/blobdiff - .travis.yml
travis: Read project/organization for SonarCloud from environment variable
[people/ms/strongswan.git] / .travis.yml
index 50cacc310978df4054cafd42e12734511b6b984b..41a16373827693fc697fbae4f127a73cfa06523c 100644 (file)
@@ -39,15 +39,17 @@ env:
 jobs:
   include:
     - env: TEST=sonarcloud
-      if: type = push AND env(SONAR_TOKEN) IS present
+      if: |
+        type = push AND env(SONAR_TOKEN) IS present AND \
+        env(SONAR_PROJECT) IS present AND \
+        env(SONAR_ORGANIZATION) IS present
       git:
         depth: false
       cache:
         directories:
           - $HOME/.sonar-cache
       addons:
-        sonarcloud:
-          organization: "strongswan"
+        sonarcloud: true
     - env: TEST=lgtm
       if: type = push AND env(LGTM_TOKEN) IS present
       git: