-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·61 lines (42 loc) · 1.25 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
DC = docker compose
BIN = tests/Application/bin/console
phpunit:
vendor/bin/phpunit
phpspec:
vendor/bin/phpspec run --ansi --no-interaction -f dot
phpstan:
vendor/bin/phpstan analyse
psalm:
vendor/bin/psalm
behat-js:
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress
install:
composer install --no-interaction --no-scripts
backend:
tests/Application/bin/console sylius:install --no-interaction
tests/Application/bin/console sylius:fixtures:load default --no-interaction
frontend:
(cd tests/Application && yarn install --pure-lockfile)
(cd tests/Application && GULP_ENV=prod yarn build)
behat:
APP_ENV=test vendor/bin/behat --colors --strict --no-interaction -vvv -f progress
init: install backend frontend
ci: init phpstan psalm phpunit phpspec behat
integration: init phpunit behat
static: install phpspec phpstan psalm
fix-cs:
vendor/bin/ecs check --fix
## Start the project
start:
@$(DC) up -d --remove-orphans --no-recreate
## Stop the project
stop:
@$(DC) down
php:
@$(DC) exec app sh
db-fixtures:
$(DC) exec app $(BIN) sylius:fixtures:load default --no-interaction
db-database:
$(DC) exec app $(BIN) d:d:c
$(DC) exec app $(BIN) d:s:u -f
$(DC) exec app $(BIN) sylius:fixtures:load default --no-interaction