-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 962 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
31
32
33
34
35
36
37
.PHONY: qa
qa: fix-code-style test phpstan rector-dry
.PHONY: code-style
code-style: ## Executes php-cs-fixer with "check" option
vendor/bin/php-cs-fixer check
.PHONY: fix-code-style
fix-code-style: ## Executes php-cs-fixer with "fix" option
vendor/bin/php-cs-fixer fix
.PHONY: phpstan
phpstan: ## Execute phpstan
vendor/bin/phpstan --configuration=phpstan.neon
.PHONY: phpstan-baseline
phpstan-baseline: ## Generates phpstan baseline
vendor/bin/phpstan --configuration=phpstan.neon --generate-baseline
.PHONY: rector
rector: vendor
vendor/bin/rector
.PHONY: rector-dry
rector-dry: vendor
vendor/bin/rector --dry-run
.PHONY: test-integration
test-integration: ## Runs integration tests with phpunit
vendor/bin/phpunit --testsuite=integration
.PHONY: test-unit
test-unit: ## Runs unit tests with phpunit
vendor/bin/phpunit --testsuite=unit
.PHONY: test
test: fix-code-style phpstan test-integration test-unit ## Runs all test suites with phpunit