diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..6b74c21 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +src_dir: lib diff --git a/.gitattributes b/.gitattributes index 448f265..247fd11 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,5 @@ /test export-ignore +/.coveralls.yml export-ignore /.gitattributes export-ignore /.gitignore export-ignore /.php_cs export-ignore diff --git a/.travis.yml b/.travis.yml index a0e420a..24bd2db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,8 @@ before_script: - composer install --dev script: - - vendor/bin/phpunit --coverage-text \ No newline at end of file + - vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml + - php vendor/bin/php-cs-fixer --diff --dry-run -v fix + +after_script: + - php vendor/bin/coveralls -v \ No newline at end of file diff --git a/composer.json b/composer.json index f18e7a4..5356348 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,8 @@ }, "require-dev": { "phpunit/phpunit": "~4.4.0", - "fabpot/php-cs-fixer": "~1.9" + "fabpot/php-cs-fixer": "~1.9", + "satooshi/php-coveralls": "0.7.*@dev" }, "autoload": { "psr-4": {