Skip to content

Commit cf351ad

Browse files
committed
Code coverage integration with Code Climate and Scrutinizer
1 parent 216e300 commit cf351ad

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/build
12
/vendor
23
.idea
34
composer.phar

.travis.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ before_script:
1212
- travis_retry composer install --prefer-source --no-interaction --dev
1313

1414
script:
15-
- phpunit --coverage-text --coverage-clover=coverage.clover
15+
- phpunit --coverage-text
1616

1717
after_script:
1818
- wget https://scrutinizer-ci.com/ocular.phar
19-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
19+
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
20+
- ./vendor/bin/test-reporter

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"illuminate/support": "~4.1|~5.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit" : "~4.0"
24+
"phpunit/phpunit" : "~4.0",
25+
"codeclimate/php-test-reporter": "dev-master"
2526
},
2627
"autoload": {
2728
"psr-4": {

phpunit.xml.dist

+3
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
<directory suffix=".php">./tests/</directory>
1616
</testsuite>
1717
</testsuites>
18+
<logging>
19+
<log type="coverage-clover" target="build/logs/clover.xml"/>
20+
</logging>
1821
</phpunit>

0 commit comments

Comments
 (0)