-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
38 lines (26 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: help
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
cs-checks: cs-check-phpcs cs-check-phpcsfixer ## Checks the php coding style
cs-check-phpcs: ## Runs PHPCS checks
vendor/bin/phpcs --standard=./phpcs.xml.dist --report-full
cs-check-phpcsfixer: ## Runs php-cs-fixer checks
vendor/bin/php-cs-fixer fix --dry-run --diff
cs-fix: ## Fixes the coding style
vendor/bin/phpcbf --standard=./phpcs.xml.dist || true
vendor/bin/php-cs-fixer fix --allow-risky=yes
static-analysis: ## Runs a php static analyzer
vendor/bin/phpstan analyse --configuration=phpstan.neon --level=max src
tests-unit:
vendor/bin/phpunit
bash: ## Starts a bash session in the php container
docker-compose exec php /bin/sh
docker-up: ## Start Docker containers
docker-compose up --detach
docker-up-build: ## Re-build and Start Docker containers
docker-compose up --detach --build --force-recreate --remove-orphans
docker-down: ## Stop and remove Docker containers
docker-compose down --remove-orphans
docker-logs: ## View output from docker containers
docker-compose logs --follow