-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
36 lines (25 loc) · 2.2 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
help: ## shows this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## install all dependencies for a development environment
composer install -n
update: ## update all dependencies for a development environment
composer update
coding-standard-fix: ## apply automated coding standard fixes
./vendor/bin/php-cs-fixer fix --config=config/.php_cs.dist.php -vvv
./vendor/bin/phpcbf --basepath=. --standard=config/.phpcs.xml
coding-standard-check: ## check coding-standard compliance
./vendor/bin/php-cs-fixer fix --config=config/.php_cs.dist.php --dry-run -vvv
./vendor/bin/phpcs --basepath=. --standard=config/.phpcs.xml
static-analysis: ## run static analysis checks
./vendor/bin/psalm -c config/psalm.xml
uncached-static-analysis: ## run static analysis checks without cache
./vendor/bin/psalm -c config/psalm.xml --no-cache
type-coverage: ## send static analysis type coverage metrics to https://shepherd.dev/
./vendor/bin/psalm -c config/psalm.xml --shepherd --stats
security-analysis: ## run static analysis security checks
./vendor/bin/psalm -c config/psalm.xml --taint-analysis
unit-tests: ## run unit test suite
php vendor/bin/phpunit -c config/phpunit.xml.dist
code-coverage: unit-tests ## generate and upload test coverage metrics to https://coveralls.io/
./vendor/bin/php-coveralls -x var/clover.xml -o var/coveralls-upload.json -v
check: coding-standard-check static-analysis security-analysis unit-tests ## run quick checks for local development iterations