-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
30 lines (24 loc) · 984 Bytes
/
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
.PHONY: tests-changed
tests-changed: export APP_ENV=test
tests-changed: vendor doctrine
symfony php vendor/bin/phpunit --configuration=phpunit.xml.dist $(shell git diff HEAD --name-only | grep Test.php | xargs )
.PHONY: tests
tests: export APP_ENV=test
tests:
vendor/bin/phpunit
.PHONY: cs
cs: vendor
symfony php vendor/bin/php-cs-fixer fix --diff --verbose
.PHONY: static-code-analysis
static-code-analysis:
vendor/bin/phpstan analyse -c phpstan.neon.dist --memory-limit=-1
.PHONY: static-code-analysis-baseline
static-code-analysis-baseline:
vendor/bin/phpstan analyse -c phpstan.neon.dist --generate-baseline=phpstan-baseline.neon
.PHONY: refactoring
refactoring:
vendor/bin/rector process --config rector.php
.PHONY: dependency-analysis
dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker
symfony php tools/composer-require-checker check --config-file=$(shell pwd)/composer-require-checker.json
vendor/bin/composer-unused