Skip to content

Commit 35fe2c9

Browse files
authored
Add library to upload coverage to Scrutinizer (#3)
1 parent a9b6705 commit 35fe2c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ script:
2828
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then phpdbg -qrr ./vendor/bin/phpunit --coverage-text --coverage-clover=./build/logs/clover.xml ; fi
2929
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi
3030

31+
after_script:
32+
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/ocular code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"ext-json": "*"
1717
},
1818
"require-dev": {
19-
"phpunit/phpunit": "~6.4.4"
19+
"phpunit/phpunit": "~6.4.4",
20+
"scrutinizer/ocular": "~1.1"
2021
},
2122
"autoload": {
2223
"psr-4": {

0 commit comments

Comments
 (0)