From 685e29d8ff2807a6ce2c2b7eb7672bc70fdff6e2 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Tue, 16 Aug 2016 23:38:24 +0900 Subject: [PATCH] Report coverage to Scrutinizer --- .gitignore | 1 + .travis.yml | 5 +++- phpunit-cc.xml | 42 --------------------------------- phpunit.xml => phpunit.xml.dist | 13 +--------- 4 files changed, 6 insertions(+), 55 deletions(-) delete mode 100644 phpunit-cc.xml rename phpunit.xml => phpunit.xml.dist (68%) diff --git a/.gitignore b/.gitignore index 7f7304a1..13c9e9b5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /analysis /vendor/ /composer.lock +/phpunit.xml ## IDE support *.buildpath diff --git a/.travis.yml b/.travis.yml index bcc21aad..15e7a210 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,4 +28,7 @@ script: ## PHP_CodeSniffer - ./vendor/bin/phpcs --report-width=200 --report-summary --report-full src/ tests/ --standard=PSR2 -n ## PHPUnit - - ./vendor/bin/phpunit + - ./vendor/bin/phpunit --coverage-clover coverage-clover.xml + +after_script: + - if [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover tests/coverage-clover.xml ; fi diff --git a/phpunit-cc.xml b/phpunit-cc.xml deleted file mode 100644 index c87c42f3..00000000 --- a/phpunit-cc.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - ./tests/PhpSpreadsheet - - - - ./src - - ./src/PhpSpreadsheet/Shared/PCLZip - ./src/PhpSpreadsheet/Shared/JAMA - ./src/PhpSpreadsheet/Writer/PDF - - - - - - - - - - diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 68% rename from phpunit.xml rename to phpunit.xml.dist index 2ea211a6..2843d1a5 100644 --- a/phpunit.xml +++ b/phpunit.xml.dist @@ -2,19 +2,8 @@ + disallowTestOutput="true">