diff --git a/.travis.yml b/.travis.yml index 3e09f76..ad3ad0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,13 @@ dist: bionic language: php +addons: + sonarcloud: + organization: "chubbyphp" + +git: + depth: false + matrix: include: - php: 7.2 @@ -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 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..9494b77 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,9 @@ +sonar.projectKey=chubbyphp_chubbyphp-validation +sonar.projectName=chubbyphp-validation + +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