vfunin/dev-ci-kit

A composer plugin that provides local CI toolkit for efficient development.

Installs: 46

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:composer-plugin

v0.2.0 2023-08-14 09:02 UTC

This package is auto-updated.

Last update: 2024-04-14 10:57:11 UTC


README

Total Downloads Build status Mutation testing badge codecov psalm-level type-coverage

Dev CI Kit

The package provides a pre-configured set of code quality checking tools based on GrumPHP.

Requirements

  • php
  • git
  • composer
  • xdebug (optional) - for code coverage and mutation testing.

Installation

Install Dev CI Kit with dependencies:

composer require --dev vfunin/dev-ci-kit --update-with-all-dependencies

After installation, configuration file templates will be copied to your project's root directory with a .dist extension. If your project does not already have the corresponding file, simply remove the extension, or use your own configuration.

Important

If the ./app or /src directories do not exist in your project, you should remove the corresponding checks from the phpunit.xml, psalm.xml, rector.php, phpcs.xml, infection.json and deptrac.yaml.

Basic usage

Since the package is built on GrumPHP, its usage is entirely identical:

vendor/bin/grumphp run

Or simply commit some changes because "GrumPHP is sniffing your commits" :)

Also, feel free to use tools individually for spot-checking, like

vendor/bin/infection

And of course, you can modify the GrumPHP configuration in the grumphp.yml file. For example, you can disable tasks by simply removing them from testsuites: * : tasks:.

About

Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub.

License

Dev CI Kit is licensed under the MIT License.