From 66adc4697d39af88a2d3026bfaa4aae662f15302 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Mon, 11 Sep 2017 13:55:25 +0900 Subject: [PATCH] Introduce `composer check` to check the entire project before pushing --- composer.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/composer.json b/composer.json index 05bb1806..580b95c8 100644 --- a/composer.json +++ b/composer.json @@ -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": "*",