blob: 2d5aa920448cc9994813a78bf65f6d22d538a383 (
plain)
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
|
VENDOR=./vendor/bin/
PHPUNIT=php -dxdebug.enabled=1 -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text
test:
rm -f public/tests && ln -s ../tests public/tests
{ php -S 127.0.0.1:8081 -t public/ >& /dev/null & }; \
PID=$$!; \
$(PHPUNIT); \
RES=$$?; \
kill $$PID; \
rm public/tests
exit $$RES
fmt:
$(VENDOR)phpcbf
cs:
$(VENDOR)phpcs
lint:
$(VENDOR)parallel-lint --exclude vendor .
stan:
$(VENDOR)phpstan analyze -c phpstan.neon
report:
$(VENDOR)phpmd \
app,custom,docs,tests,public \
html \
cleancode,codesize,controversial,design,naming,unusedcode > tmp/report.html
serve:
php -S localhost:5555 -t public/
clean:
rm -fr ./cache/*
rm -fr ./custom/config/*
rm -fr ./custom/config.* ./custom/people.*
|