-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 1.21 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
37
38
39
40
41
42
43
44
45
46
47
48
49
build:
docker compose build
status:
docker compose ps
start:
docker compose up --detach --no-build --remove-orphans --force-recreate
stop:
docker compose down --remove-orphans
restart: stop start
env:
touch ./.env.local
install:
docker compose exec -i php composer install
migrate:
docker compose exec -i php ./bin/console doctrine:migrations:sync-metadata-storage --no-interaction
docker compose exec -i php ./bin/console doctrine:migrations:migrate --no-interaction
docker compose exec -i php ./bin/console doctrine:migrations:status --no-interaction
init: build env start install migrate status
sh_php:
docker compose exec -i php bash
sh_postgres:
docker compose exec -i postgres bash
stan:
docker compose exec -i php ./vendor/bin/phpstan analyse --configuration=phpstan.dist.neon
phpunit:
docker compose exec -i php ./vendor/bin/phpunit --configuration=phpunit.xml.dist
rector-scan:
docker compose exec -i php ./vendor/bin/rector process --config=rector.php --dry-run
rector-fix:
docker compose exec -i php ./vendor/bin/rector process --config=rector.php
deptrac:
docker compose exec -i php ./vendor/bin/deptrac analyse --config-file=deptrac.yaml --report-uncovered
check: stan rector-scan deptrac phpunit