diff --git a/.scrutinizer.yml b/.scrutinizer.yml new file mode 100644 index 00000000..8efd68d3 --- /dev/null +++ b/.scrutinizer.yml @@ -0,0 +1,16 @@ +filter: + excluded_paths: [ 'vendor/*', 'tests/*', 'samples/*', 'src/PhpWord/Shared/PCLZip/*' ] + +before_commands: + - "composer install --prefer-source --dev" + +tools: + external_code_coverage: + enabled: true + timeout: 900 + php_code_coverage: + enabled: false + test_command: phpunit -c phpunit.xml.dist + php_sim: true + php_pdepend: true + php_analyzer: true diff --git a/.travis.yml b/.travis.yml index ad3df613..8cc348f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,3 +48,8 @@ script: #- php phploc.phar src/ ## PHPUnit - phpunit -c ./ --coverage-text + +after_script: + ## Scrutinizer + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f77b9ce3..c7e59676 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -21,4 +21,7 @@ + + + \ No newline at end of file