-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (24 loc) · 694 Bytes
/
Makefile
File metadata and controls
35 lines (24 loc) · 694 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
DOCKER_COMPOSE = docker-compose
EXEC_PHP_CONTAINER = ${DOCKER_COMPOSE} exec php
start:
${DOCKER_COMPOSE} up -d
stop:
${DOCKER_COMPOSE} stop
phpcs-test:
php -d memory_limit=1024M vendor/bin/phpcs --standard=phpcs.xml -p
phpstan-test:
php -d memory_limit=1024M vendor/bin/phpstan analyse
unit-test:
php -dxdebug.mode=coverage vendor/bin/phpunit --configuration phpunit.xml --coverage-text
test:
make unit-test && make phpcs-test && make phpstan-test
fix-cs:
vendor/bin/phpcbf
d-unit-test:
${EXEC_PHP_CONTAINER} make unit-test
d-phpcs-test:
${EXEC_PHP_CONTAINER} make phpcs-test
d-phpstan-test:
${EXEC_PHP_CONTAINER} make phpstan-test
d-test:
${EXEC_PHP_CONTAINER} make test