-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 845 Bytes
/
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
.PHONY: all test
all: ecs phpstan test
echo "Is done"
install:
composer install
test:
XDEBUG_CONFIG="remote_enable=0" vendor/bin/tester -s -p php --colors 1 -C ./tests/cases/
phpstan:
XDEBUG_CONFIG="remote_enable=0" vendor/bin/phpstan analyse -l max -c tests/config/phpstan.neon src tests/src tests/cases
cs: ecs
ecs:
XDEBUG_CONFIG="remote_enable=0" vendor/bin/ecs check --config=bin/easy-coding-standard.php \
src \
bin \
tests/src tests/cases ${ECS_PARAM}
ecsFix:
$(MAKE) ECS_PARAM="--fix" ecs
coverage-clover:
XDEBUG_CONFIG="remote_enable=0" vendor/bin/tester -s -p php -d pcov.enabled=1 --colors 1 -C --coverage ./coverage.xml --coverage-src ./src ./tests/cases/
coverage-html:
XDEBUG_CONFIG="remote_enable=0" vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src ./tests/cases/