-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (31 loc) · 1.06 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
.PHONY: dev
dev: bring-up-app-and-queue-watcher
docker compose logs --follow
.PHONY: bring-up-app-and-queue-watcher
bring-up-app-and-queue-watcher: config.php
docker compose up --wait
.PHONY: bring-up-app-without-queue-watcher
bring-up-app-without-queue-watcher: config.php
docker compose up app --wait
docker compose down queue-watcher
.PHONY: check
check: static-analysis test
.PHONY: static-analysis
static-analysis:
docker compose run --rm --no-deps app vendor/bin/phpcs --standard=phpcs.xml.dist --warning-severity=0 -p src/ tests/ web/
docker compose run --rm --no-deps app vendor/bin/composer-dependency-analyser
docker compose run --rm --no-deps app vendor/bin/phpstan analyse
.PHONY: test
test: bring-up-app-and-queue-watcher
docker compose exec app vendor/bin/phpunit $(TEST)
.PHONY: all-checks
all-checks: bring-up-app-without-queue-watcher
docker compose exec app bash project_tests.sh
.PHONY: stop
stop:
docker compose down
.PHONY: import-all
import-all:
docker compose exec app bin/console queue:import all
config.php:
cp config.php.dist config.php