forked from contributte/translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (20 loc) · 813 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: qa lint cs csf phpstan tests coverage
all:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
vendor: composer.json composer.lock
composer install
qa: lint phpstan cs
lint: vendor
vendor/bin/linter src tests
cs: vendor
vendor/bin/codesniffer src tests
csf: vendor
vendor/bin/codefixer src tests
phpstan: vendor
vendor/bin/phpstan analyse -l max -c phpstan.neon src
phpstan-lowest: vendor
vendor/bin/phpstan analyse -l max -c phpstan.lowest.neon src
tests: vendor
vendor/bin/tester -s -p php --colors 1 -C tests/Tests
coverage: vendor
vendor/bin/tester -s --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/Tests