-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
76 lines (55 loc) · 1.51 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
default: lint
.PHONY: lint-php
lint-php:
vendor/bin/phplint --configuration=.phplint.yml --ansi
.PHONY: lint-ecs
lint-ecs:
vendor/bin/ecs check --verbose --ansi
.PHONY: lint
lint:
make --no-print-directory lint-php && \
make --no-print-directory lint-ecs
.PHONY: fix-ecs
fix-ecs:
vendor/bin/ecs check --fix --verbose --ansi
.PHONY: fix
fix:
make --no-print-directory fix-ecs
.PHONY: qa-phpmd
qa-phpmd:
vendor/bin/phpmd src,tests ansi unusedcode,naming,design,controversial,codesize
.PHONY: qa-phpmnd
qa-phpmnd:
vendor/bin/phpmnd --ansi ./
.PHONY: qa-compatibility
qa-compatibility:
vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 8.2- src tests
.PHONY: qa-phpstan
qa-phpstan:
vendor/bin/phpstan analyse --memory-limit=2G --no-progress
.PHONY: qa
qa:
make --no-print-directory qa-phpmd && \
make --no-print-directory qa-phpmnd && \
make --no-print-directory qa-compatibility && \
make --no-print-directory qa-phpstan
.PHONY: test-phpunit
test-phpunit:
vendor/bin/phpunit
.PHONY: test-infection
test-infection:
vendor/bin/infection
.PHONY: test
test:
make --no-print-directory test-phpunit && \
make --no-print-directory test-infection
.PHONY: report-phpunit-coverage
report-phpunit-coverage:
vendor/bin/phpunit --coverage-html build/coverage
.PHONY: report-phpunit-clover
report-phpunit-clover:
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
.PHONY: report
report:
make --no-print-directory report-phpunit-coverage && \
make --no-print-directory report-phpunit-clover