-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 801 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
31
32
33
34
35
36
#!make
help:
@echo "Project aliases and shortcuts."
@echo "\nTests"
@echo " make test [TESTS=TESTS] - Run all tests or specify them in 'params' optional parameter"
@echo " make test:unit - Run phpunit tests"
@echo "\nCode style and quality"
@echo " make phpcbf - Run CodeSniffer"
@echo " make lint - Run CodeSniffer Beautifier"
@echo " make phpstan - Run PHP STAN"
all:
make lint
make phpstan
make test
test:
./vendor/bin/phpunit $(TESTS)
test\:unit:
./vendor/bin/phpunit tests/Units/
lint:
./vendor/bin/phpcs --standard=./phpcs.xml $(PARAMS)
phpcbf:
./vendor/bin/phpcbf --standard=./phpcs.xml $(PARAMS)
phpcs:
make lint
phpstan:
./vendor/bin/phpstan analyse $(PARAMS)