Skip to content

Commit 842b25d

Browse files
committed
Add the branch to the SonarScanner
1 parent 9cd1cc5 commit 842b25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install:
1111
- unzip sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip
1212
- composer install
1313

14-
script:
14+
script:
1515
- vendor/bin/phpunit --coverage-clover phpunit.coverage.xml --log-junit phpunit.report.xml
16-
- sonar-scanner-$SONARSCANNER_VERSION-linux/bin/sonar-scanner -Dsonar.login=$SONAR_LOGIN
16+
- sonar-scanner-$SONARSCANNER_VERSION-linux/bin/sonar-scanner -Dsonar.login=$SONAR_LOGIN -Dsonar.branch.name=$TRAVIS_BRANCH -Dsonar.branch.target=master
1717

0 commit comments

Comments
 (0)