From 028d91f670379b341c4e0f22106cb30d770dc15d Mon Sep 17 00:00:00 2001 From: Andrew Millington Date: Sun, 18 Feb 2018 15:33:41 +0000 Subject: [PATCH] Add code coverage for scrutinizer --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2684cac3..be2759a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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