Continuous integration dev tools
Install
Via Composer
composer require lencse/ci-tools
Usage
Checking code coverage
# Create a Clover XML output of your project with PHPUnit
phpunit --coverage-clover build/logs/clover.xml
# Check code coverage
vendor/bin/ci-test-coverage --min-coverage 95 --clover-file build/logs/clover.xml
Integrating into composer.json
{
"scripts": {
"test-all": [
"phpunit --coverage-clover build/logs/clover.xml",
"vendor/bin/ci-test-coverage --min-coverage 95 --clover-file build/logs/clover.xml"
]
}
}
composer test-all
Testing
composer test
License
The MIT License (MIT)