-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
87 lines (63 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
bash:
docker compose exec symfony bash
up:
docker compose up -d
down:
docker compose down --remove-orphans
back-install:
docker compose exec symfony composer install
front-install:
docker compose exec react yarn install
install:
make back-install
make front-install
eslint:
docker compose exec react yarn eslint-fix
front-test:
docker compose exec react yarn test src/ --watchAll=false
front-check:
make eslint
make front-test
phpstan:
docker compose exec symfony ./vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=-1
yamlint:
docker compose exec symfony ./vendor/bin/yaml-lint config/
cs-fixer:
docker compose exec symfony ./vendor/bin/php-cs-fixer fix --allow-risky=yes $(1)
rector:
docker compose exec symfony ./vendor/bin/rector process src
code-check:
make yamlint
make cs-fixer
make rector
make phpstan
fixtures:
docker compose exec symfony bin/console doctrine:fixtures:load --no-interaction
.PHONY:migrations
migrations:
docker compose exec symfony bin/console doctrine:migration:migrate --no-interaction
database-test:
docker compose exec -e APP_ENV=test symfony bin/console doctrine:database:create --if-not-exists
docker compose exec -e APP_ENV=test symfony bin/console doctrine:migration:migrate --no-interaction
back-test:
make back-test-unit
make mutation
make back-test-functional
back-test-functional:
docker-compose exec -e APP_ENV=test symfony bin/console doctrine:fixtures:load --no-interaction
docker-compose exec symfony ./vendor/bin/simple-phpunit --testsuite=functional
back-test-unit:
docker-compose exec symfony ./vendor/bin/simple-phpunit --testsuite=unit
mutation:
docker-compose exec symfony ./vendor/bin/infection --threads=4 --min-msi=70
back-check:
make code-check
make back-test
pr-check:
make back-check
make front-check
cc:
docker compose exec symfony bin/console cache:clear
coverage:
docker compose exec -e APP_ENV=test symfony bin/console doctrine:fixtures:load --no-interaction
docker compose exec -e XDEBUG_MODE=coverage symfony ./vendor/bin/simple-phpunit --coverage-html coverage