travis: Start with sonarcloud job first

Also change the condition, the environment variable is apparently still
around when the decision to run it is made.
This commit is contained in:
Tobias Brunner 2018-11-13 16:42:44 +01:00
parent 187ab29849
commit ff97733163
1 changed files with 4 additions and 4 deletions

View 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