-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.37 KB
/
Makefile
File metadata and controls
45 lines (34 loc) · 1.37 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
42
43
44
45
.PHONY: code-style
code-style:
docker exec task_manager-php ./symfony/vendor/bin/php-cs-fixer fix --config ./symfony/.php-cs-fixer.dist.php --allow-risky=yes -vv --dry-run --show-progress=dots
.PHONY: static-analysis
static-analysis:
docker exec task_manager-php ./symfony/vendor/bin/psalm --config=symfony/psalm.dist.xml --memory-limit=-1
.PHONY: test
test:
docker exec task_manager-php php symfony/bin/phpunit src/tests
.PHONY: check-all
check-all: code-style static-analysis test
.PHONY: composer-install
composer-install:
docker exec task_manager-php composer install -d ./symfony --ignore-platform-reqs
.PHONY: generate-ssl-keys
generate-ssl-keys:
docker exec task_manager-php php symfony/bin/console lexik:jwt:generate-keypair --overwrite
.PHONY: clean-cache
clean-cache:
docker exec task_manager-php rm -rf symfony/var/cache/
.PHONY: warmup-cache
warmup-cache:
docker exec task_manager-php php symfony/bin/console cache:warmup
.PHONY: migrate
migrate:
docker exec task_manager-php php symfony/bin/console --no-interaction doctrine:migrations:migrate
.PHONY: supervisor-reload
supervisor-reload:
docker exec task_manager-php supervisorctl reload
.PHONY: projections-reload
projections-reload:
docker exec task_manager-php php symfony/bin/console projections:reload -vv
.PHONY: setup
setup: composer-install generate-ssl-keys migrate clean-cache warmup-cache supervisor-reload