From b9b10d9036cc71c3133e5da4a1f9347b522ba1f8 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Tue, 6 Sep 2016 10:42:39 +0200 Subject: [PATCH] Add coverage reporting --- .travis.yml | 5 ++++- composer.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d44af93..578baac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,7 @@ install: - composer install script: - - vendor/bin/phpunit --bootstrap vendor/autoload.php tests + - vendor/bin/phpunit --coverage-clover=coverage.xml --whitelist src --bootstrap vendor/autoload.php tests + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/composer.json b/composer.json index caec358..6062c5e 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,7 @@ } }, "require-dev": { - "phpunit/phpunit": "^5.5" + "phpunit/phpunit": "^5.5", + "phpunit/php-code-coverage": "^4.0" } }