Skip to content

Commit b7751c2

Browse files
committed
Send code coverage report to scrutinizer-ci.
1 parent c06e8d4 commit b7751c2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.scrutinizer.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
imports:
2+
- php
3+
4+
tools:
5+
external_code_coverage:
6+
timeout: 1200 # Timeout in seconds.

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ services: mongodb
2323
before_script:
2424
- yes '' | pecl -q install -f mongo-${MONGO_VERSION} && echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
2525
- composer install --dev
26+
27+
script:
28+
- phpunit --coverage-clover=coverage.clover
29+
30+
after_script:
31+
- wget https://scrutinizer-ci.com/ocular.phar
32+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 commit comments

Comments
 (0)