Skip to content

Commit

Permalink
add sonarcube
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Sep 12, 2020
1 parent 907c333 commit 807fa68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ dist: bionic

language: php

addons:
sonarcloud:
organization: "chubbyphp"

git:
depth: false

matrix:
include:
- php: 7.2
Expand Down Expand Up @@ -32,3 +39,4 @@ script:

after_success:
- travis_retry php vendor/bin/php-coveralls --coverage_clover=build/phpunit/clover.xml --json_path=build/coveralls.json -v
- sonar-scanner
9 changes: 9 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sonar.projectKey=chubbyphp_chubbyphp-api-http
sonar.projectName=chubbyphp-api-http

sonar.sources=src
sonar.tests=tests
sonar.language=php
sonar.sourceEncoding=UTF-8
sonar.php.coverage.reportPaths=build/phpunit/clover.xml
sonar.php.tests.reportPath=build/phpunit/junit.xml

0 comments on commit 807fa68

Please sign in to comment.