diff --git a/.scrutinizer.yml b/.scrutinizer.yml index b465318..7a65e6c 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -1,9 +1,12 @@ -filter: - paths: [src/*] - excluded_paths: [examples/*] -checks: - php: true -tools: - php_code_sniffer: - config: +filter: + paths: [src/*] + excluded_paths: [examples/*, tests/*] +checks: + php: true +tools: + external_code_coverage: + timeout: 600 + runs: 2 + php_code_sniffer: + config: standard: "PSR2" \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index a81451f..c69ada1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,8 @@ sudo: false install: travis_retry composer install --no-interaction --prefer-source --dev -script: vendor/bin/phpunit \ No newline at end of file +script: vendor/bin/phpunit --coverage-clover=coverage.clover + +after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover coverage.clover \ No newline at end of file