Skip to content

Commit 0da2500

Browse files
author
Daniel Gomes
committed
add code coverage to sonarcloud
1 parent bfa030b commit 0da2500

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ php:
99

1010
matrix:
1111

12+
env:
13+
global:
14+
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
15+
1216
before_script:
1317
- composer install
1418

@@ -17,4 +21,5 @@ addons:
1721
organization: "dcsg-github"
1822

1923
script:
24+
- vendor/bin/phpunit --coverage-clover=coverage.xml
2025
- sonar-scanner

sonar-project.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
sonar.projectKey=dcsg_php-immutable-collections
22
sonar.sources=src
3+
sonar.php.tests.reportPath=coverage.xml
4+
sonar.php.coverage.reportPaths=coverage.xml

0 commit comments

Comments
 (0)