-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 801 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
PROJECT_NAME=textmagic
DOCKER=docker compose -p ${PROJECT_NAME} -f ./docker/docker-compose.yml
DOCKER_EXEC=$(DOCKER) exec app
DOCKER_RUN=$(DOCKER) run app
up:
${DOCKER} up -d
down:
${DOCKER} down
rebuild:
${DOCKER} build --no-cache
# Run container shell
cli:
${DOCKER_EXEC} /bin/sh
# Quality Tools
cs-fixer:
${DOCKER_EXEC} php ./vendor/bin/php-cs-fixer --config=.php-cs-fixer.php --path-mode=intersection --using-cache=no --dry-run --diff fix .
cs-fix:
${DOCKER_EXEC} php ./vendor/bin/php-cs-fixer --config=.php-cs-fixer.php --path-mode=intersection --using-cache=no --show-progress=dots --verbose fix .
psalm:
${DOCKER_EXEC} php ./vendor/bin/psalm --no-cache --update-baseline $(ARGS)
psalm2baseline:
${DOCKER_EXEC} php ./vendor/bin/psalm --no-cache --set-baseline=psalm.bugs $(ARGS)