-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
42 lines (28 loc) · 992 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
38
39
40
41
42
WAIT=docker compose up --wait --no-deps
# start targets
setup: start composer-update
shell: wait-php
@docker compose exec php zsh
start:
@docker compose up -d
wait-php:
@$(WAIT) php
wait-mysql:
@$(WAIT) mysql80
# commands
composer-update: wait-php
@docker compose exec -T php composer update --ansi
pre-commit-checks: rector code-style-fix psalm test infection
rector: wait-php
@docker compose exec -T php ./vendor/bin/rector --ansi
code-style-check: wait-php
@docker compose exec -T php ./vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run
code-style-fix: wait-php
@docker compose exec -T php ./vendor/bin/php-cs-fixer fix --verbose --ansi
psalm: wait-php
@docker compose exec -T php ./vendor/bin/psalm
test: wait-php wait-mysql
@docker compose exec -T php ./vendor/bin/phpunit --colors=always
infection: wait-php wait-mysql
@docker compose exec -e XDEBUG_MODE=coverage -T php ./vendor/bin/roave-infection-static-analysis-plugin --show-mutations --ansi
.SILENT: