-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·41 lines (28 loc) · 865 Bytes
/
Makefile
File metadata and controls
executable file
·41 lines (28 loc) · 865 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
39
40
41
# Executables (local)
DOCKER_COMP = docker compose
# Docker containers
PHP_CONT = $(DOCKER_COMP) exec app
# Executables
PHP = $(PHP_CONT) php
COMPOSER = $(PHP_CONT) composer
# ----------------------------------------------------------------------------------------------------------------------
install:
docker compose up -d
@$(COMPOSER) install
up:
docker compose up -d
down:
docker compose down --remove-orphans
rebuild:
docker compose up -d --build --remove-orphans
phpunit:
@$(PHP) vendor/bin/phpunit --colors=auto
coverage:
@$(DOCKER_COMP) exec -e XDEBUG_MODE=coverage app vendor/bin/phpunit --coverage-html var/phpunit/coverage
stan:
@$(PHP) vendor/bin/phpstan analyse src
cs:
@$(DOCKER_COMP) exec -e PHP_CS_FIXER_IGNORE_ENV=1 app vendor/bin/php-cs-fixer fix src
rector:
@$(PHP) vendor/bin/rector
make test: phpunit stan rector cs