-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (53 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
help:
@echo "\n\
Usage: \n\n\
make \n\
| init Поднять приложение с нуля\n\
| up Запустить установленные контейнеры\n\
| down Остановить и уничтожить все контейнеры приложения\n\
| restart Перезапуск контейнеров\n\
| test Запуск тестов\n\
| app-lint Исправить котостайл\n\
| shell-php Запустить консоль контейнера\n\
| app-rector-dry Запустить Ректора с проверкой\n\
| app-rector Запустить Ректора\n\
| app-analyze Проверить через Psalm\n\
\n\
"
init: docker-down-clear \
docker-pull docker-build up \
app-init
up: docker-up
down: docker-down
restart: down up
test: app-test
docker-up:
docker-compose up -d
docker-down:
docker-compose down --remove-orphans
docker-down-clear:
docker-compose down -v --remove-orphans
docker-pull:
docker-compose pull --include-deps
docker-build:
docker-compose build
app-composer-install:
docker-compose run --rm sbis-php-cli composer install
app-init: permissions app-cache-clear app-composer-install
app-cache-clear:
docker run --rm -v ${PWD}/:/app -w /app alpine sh -c 'rm -rf var/cache/* var/test/*'
permissions:
docker run --rm -v ${PWD}/:/app -w /app alpine chmod 777 var/cache var/test
app-test:
docker-compose run --rm sbis-php-cli composer test
app-lint:
docker-compose run --rm sbis-php-cli composer lint
docker-compose run --rm sbis-php-cli composer cs-fix
app-analyze:
docker-compose run --rm sbis-php-cli php vendor/bin/psalm
app-rector:
docker-compose run --rm sbis-php-cli vendor/bin/rector process
app-rector-dry:
docker-compose run --rm sbis-php-cli vendor/bin/rector process --dry-run
shell-php:
docker-compose exec sbis-php-cli bash