travis: Start with sonarcloud job first
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 Nov 2018 15:42:44 +0000 (16:42 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Nov 2018 13:37:56 +0000 (14:37 +0100)
Also change the condition, the environment variable is apparently still
around when the decision to run it is made.

.travis.yml

index 904f1a9..5dbeb44 100644 (file)
@@ -55,17 +55,17 @@ env:
 
 matrix:
   include:
-    - compiler: clang
-      os: osx
-      env: TEST=osx
     - compiler: gcc
       env: TEST=sonarcloud
-      if: env(SONAR_TOKEN) IS present
+      if: type = push
       git:
         depth: false
       addons:
         sonarcloud:
           organization: "strongswan"
+    - compiler: clang
+      os: osx
+      env: TEST=osx
     - compiler: gcc
       env: TEST=coverage
     - compiler: clang