-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 796 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 796 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
36
37
38
39
all: install lint stan test
install:
ifndef CIRCLE_BUILD_NUM
composer install
else
composer install --no-interaction --no-progress
endif
lint:
ifndef CIRCLE_BUILD_NUM
./vendor/bin/phpcs
else
mkdir -p ./phpcs/
./vendor/bin/phpcs --report-full --report-junit=./phpcs/junit.xml
endif
stan:
ifndef CIRCLE_BUILD_NUM
./vendor/bin/phpstan analyse -l 5 src
else
./vendor/bin/phpstan --no-interaction --no-progress analyse -l 5 src
endif
test:
ifndef CIRCLE_BUILD_NUM
./vendor/bin/phpunit --configuration ./phpunit.xml
else
php ./vendor/bin/phpunit --configuration ./phpunit.xml
endif
delete-all-cassettes:
cd tests/ && find . -name "*.yml" -type f -delete
generate-all-cassettes: delete-all-cassettes test
.PHONY: all install lint stan test delete-all-cassettes generate-all-cassettes