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 11, 2020
1 parent e51cfa6 commit 0f4bccb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
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
@@ -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

0 comments on commit 0f4bccb

Please sign in to comment.