Skip to content

Commit 95e09d7

Browse files
committed
Send code coverage to scrutinizer-ci.
1 parent a4d4c9a commit 95e09d7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ before_script:
1111
- composer install --no-interaction
1212

1313
script:
14-
- vendor/bin/phpunit
14+
- vendor/bin/phpunit --coverage-clover=coverage.clover
1515
- vendor/bin/phpcs --standard=PSR2 ./src/
1616

17+
after_script:
18+
- wget https://scrutinizer-ci.com/ocular.phar
19+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
20+
1721
# Use Travis' new container-based infrastructure.
1822
# See http://docs.travis-ci.com/user/migrating-from-legacy/#How-can-I-use-container-based-infrastructure%3F
19-
sudo: false
23+
sudo: false
24+

0 commit comments

Comments
 (0)