From f08d9e8e7772923dcebb337dbd57c4b976d356d2 Mon Sep 17 00:00:00 2001 From: Steven Dubois Date: Fri, 5 Nov 2021 16:19:17 +0100 Subject: [PATCH] N/A: Add quality tools to Makefile --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index 767184b..9150849 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,27 @@ env-stop: ## Stop the environment .PHONY: env-backup env-build env-cache env-logs env-logs env-mysql env-nginx env-php env-ps env-purge env-restart env-restore env-start env-stats env-stop +## +## ---------------------------------------------------------------------------- +## Pipelines +## ---------------------------------------------------------------------------- +## + +ci: ## Continuous integration + @make phpcsfixer + @make phpstan + +phpcsfixer: ## Executes the code style analysis on all PHP files + ./vendor/bin/php-cs-fixer fix --verbose + +phpcsfixer-audit: ## Executes the code style analysis in dry-run mode on all PHP files + ./vendor/bin/php-cs-fixer fix --dry-run --verbose + +phpstan: ## Executes a static analysis on all PHP files + ./vendor/bin/phpstan --memory-limit="-1" analyse + +.PHONY: ci phpcsfixer phpcsfixer-audit phpstan + .DEFAULT_GOAL := help help: @grep -E '(^[0-9a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) \