Introduce `composer check` to check the entire project before pushing

This commit is contained in:
Adrien Crivelli 2017-09-11 13:55:25 +09:00
parent 097d349e9c
commit 66adc4697d
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,13 @@
"name": "Erik Tilt"
}
],
"scripts": {
"check": [
"php-cs-fixer fix --ansi --dry-run --diff",
"phpcs --report-width=200 --report-summary --report-full samples/ src/ tests/ --standard=PSR2 -n",
"phpunit --color=always"
]
},
"require": {
"php": "^5.6|^7.0",
"ext-mbstring": "*",