-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (15 loc) · 823 Bytes
/
Makefile
File metadata and controls
23 lines (15 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
help: ## Show this message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean-code: ## Run PHP CS Fixer
./vendor/bin/php-cs-fixer --diff -v fix
test: test-code test-qa ## Run code and QA tests
test-code: ## Run code tests
./vendor/bin/simple-phpunit --testdox
test-qa: test-phpcs test-psalm test-phpmd ## Run QA tests
test-phpcs: ## Run coding standard tests
./vendor/bin/php-cs-fixer --diff --dry-run --using-cache=no -v fix src
test-psalm: ## Run Psalm static analysis
./vendor/bin/psalm --show-info=true --find-unused-psalm-suppress
test-phpmd: ## Run PHPMD static analysis
./vendor/bin/phpmd --exclude Tests/Fixtures src/ text phpmd.xml
.PHONY: clean-code test test-code test-qa test-phpcs test-psalm test-phpmd