Skip to content

Commit

Permalink
Merge pull request #74 from EmakinaFR/feature/makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
duboiss authored Nov 5, 2021
2 parents 202dce3 + f08d9e8 commit e47c71d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit e47c71d

Please sign in to comment.