This repository was archived by the owner on Jan 18, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 1.26 KB
/
Copy pathMakefile
File metadata and controls
41 lines (32 loc) · 1.26 KB
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
39
40
41
.DEFAULT_GOAL:= help
.PHONY: it
it: coding-standards static-code-analysis tests
.PHONY: code-coverage
code-coverage: export XDEBUG_MODE=coverage
code-coverage: vendor ## Executes the test suite and generates code coverage reports
mkdir -p .build/phpunit
vendor/bin/phpunit --coverage-text
.PHONY: coding-standards
coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fixer
mkdir -p .build/php-cs-fixer
vendor/bin/php-cs-fixer fix --diff --diff-format=udiff --verbose
.PHONY: help
help: ## This help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'
.PHONY: static-code-analysis
static-code-analysis: vendor phpstan psalm ## ## Performs static code analysis
.PHONY: psalm
psalm: ## Performs static code analysis with Psalm
mkdir -p .build/psalm
vendor/bin/psalm --diff --show-info=false --stats --threads=4
.PHONY: phpstan
phpstan: ## Performs static code analysis with PHPStan
mkdir -p .build/phpstan
vendor/bin/phpstan analyse --memory-limit=-1
.PHONY: tests
tests: vendor ## Executes the test suite
mkdir -p .build/phpunit
vendor/bin/phpunit
vendor: composer.json composer.lock
composer validate --strict
composer install --no-interaction --no-progress