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" } }