Skip to content

Commit

Permalink
fix sonar-config in travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-fra committed Jun 16, 2020
1 parent 3859585 commit 5aab230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
SONAR_PARAMS="$SONAR_PARAMS -Dsonar.pullrequest.provider=github";
SONAR_PARAMS="$SONAR_PARAMS -Dsonar.pullrequest.github.repository=${TRAVIS_REPO_SLUG}";
else
if [ -z "$TRAVIS_TAG" -a "${TRAVIS_BRANCH:-master}" != "master" ]; then
if [ "${TRAVIS_BRANCH:-master}" != "master" ]; then
SONAR_PARAMS="$SONAR_PARAMS -Dsonar.branch.name=${TRAVIS_BRANCH}";
if [ -z "$TRAVIS_TAG" -a "${TRAVIS_BRANCH:-develop}" != "develop" ]; then
if [[ ! "${TRAVIS_BRANCH:-master}" =~ maintenance/* ]]; then
SONAR_PARAMS="$SONAR_PARAMS -Dsonar.branch.target=master";
fi;
fi;
Expand Down

0 comments on commit 5aab230

Please sign in to comment.