lencse/ci-tools

Continuous integration devtools

v3.1.0 2018-03-05 08:58 UTC

This package is auto-updated.

Last update: 2024-11-09 13:44:37 UTC


README

GitHub version Build Status

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)