generated from dehy/template-symfony
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (32 loc) · 970 Bytes
/
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
NAME = dehy/archery-manager:local
DOCKER_COMPOSE = docker compose
ifeq ($(CI), true)
DOCKER_COMPOSE = docker compose --ansi never
endif
ROOT_EXEC = $(DOCKER_COMPOSE) exec -w /app app
BASE_EXEC = $(DOCKER_COMPOSE) exec -u symfony -w /app app
container:
$(DOCKER_COMPOSE) build
start:
$(DOCKER_COMPOSE) up -d
stop:
$(DOCKER_COMPOSE) stop
shell: start
$(BASE_EXEC) bash
shell-root: start
$(ROOT_EXEC) bash
deps: start
$(BASE_EXEC) composer install
$(BASE_EXEC) yarn install
$(BASE_EXEC) yarn run encore dev
migratedb: start
$(BASE_EXEC) php bin/console doctrine:migrations:migrate -n
fixtures: migratedb
$(BASE_EXEC) php bin/console hautelook:fixtures:load -n
qa:
$(BASE_EXEC) php vendor/bin/rector process; \
$(BASE_EXEC) php vendor/bin/php-cs-fixer fix; \
$(BASE_EXEC) php vendor/bin/phpstan analyze --xdebug
test:
$(DOCKER_COMPOSE) -p archery_test -f docker-compose.test.yml up --build --abort-on-container-exit --force-recreate
.PHONY: fixtures