-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
59 lines (44 loc) · 1.11 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
EXEC_PHP = docker-compose exec php
EXEC_PHP_ND = docker-compose exec -e SYMFONY_DEPRECATIONS_HELPER=disabled php
SYMFONY = $(EXEC_PHP) bin/console
COMPOSER = $(EXEC_PHP) composer
up:
docker-compose build
docker-compose up -d
sleep 20
$(COMPOSER) install --no-interaction
$(SYMFONY) cache:clear
$(SYMFONY) assets:install public --symlink
$(SYMFONY) doctrine:migrations:migrate -n
$(SYMFONY) doctrine:fixtures:load -n
composer-update:
$(COMPOSER) update
test:
$(SYMFONY) doctrine:migrations:migrate -n --env=test
$(SYMFONY) cache:clear --env=test
$(EXEC_PHP) bin/phpunit
test-no-deprecation:
$(SYMFONY) doctrine:migrations:migrate -n --env=test
$(SYMFONY) cache:clear --env=test
$(EXEC_PHP_ND) bin/phpunit
retest:
$(EXEC_PHP) bin/phpunit
retest-no-deprecation:
$(EXEC_PHP_ND) bin/phpunit
cs-fix:
$(COMPOSER) fix-cs
cs-check:
$(COMPOSER) check-cs
stan:
$(COMPOSER) stan
lint: cs-check stan
stop:
docker-compose stop
down:
docker-compose down
jwt:
$(SYMFONY) lexik:jwt:generate-keypair
migrations-generate:
$(SYMFONY) doctrine:migrations:generate
migrations-migrate:
$(SYMFONY) doctrine:migrations:migrate