-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 763 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 763 Bytes
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
compose=docker compose
dc:
@${compose} -f docker-compose.yml $(cmd)
dcr:
@make dc cmd="run --rm php-cli $(cmd)"
stop:
@make dc cmd="stop"
up:
@make dc cmd="up -d"
build-containers:
@make dc cmd="up -d --build"
down:
@make dc cmd="down"
composer:
@make dcr cmd="composer $(arg)"
# Code quality tools.
phpunit:
@make dcr cmd="vendor/bin/phpunit -d --enable-pretty-print -d --compact $(arg)"
phpunit-with-coverage-report:
@make phpunit arg="--coverage-clover=clover.xml -d --min-coverage=min-coverage-rules.php"
phpstan:
@make dcr cmd="vendor/bin/phpstan --memory-limit=1G $(arg)"
csfix:
@make dcr cmd="vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php"
delete-snapshots:
find . -name __snapshots__ -type d -prune -exec rm -rf {} \;