From 232a30a1c41e9dbfb52a02610311072e37308dd7 Mon Sep 17 00:00:00 2001 From: Ivan Lanin Date: Tue, 6 May 2014 17:32:32 +0700 Subject: [PATCH] Enable code coverage in Scrutinizer --- .scrutinizer.yml | 16 ++++++++++++++++ .travis.yml | 5 +++++ phpunit.xml.dist | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 .scrutinizer.yml 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