Add code coverage for scrutinizer

This commit is contained in:
Andrew Millington 2018-02-18 15:33:41 +00:00
parent 9287f587fc
commit 028d91f670
No known key found for this signature in database
GPG Key ID: 815DE090877B53F3

View File

@ -20,9 +20,13 @@ install:
- composer update --no-interaction --prefer-dist $DEPENDENCIES
script:
- vendor/bin/phpunit
- vendor/bin/phpunit --coverage-clover=coverage.clover
- vendor/bin/phpstan analyse -l 6 -c phpstan.neon src tests
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
branches:
only:
- master