-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 754 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 754 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
lint-php:
php vendor/bin/phpcs --standard=Generic --sniffs="Generic.PHP.Syntax" src -p
phpcbf:
php vendor/bin/phpcbf src tests
phpcs:
php vendor/bin/phpcs src tests -n
php-cs-fixer:
php bin/php-cs-fixer.phar fix -v
composer-normalize:
php bin/composer-normalize.phar --no-update-lock
phpstan:
php vendor/bin/phpstan analyse
phpunit:
php vendor/bin/phpunit tests/ --colors=always --stop-on-failure
@if [ ! -f build/coverage.txt ]; then exit 1; fi;
@cat build/coverage.txt;
@coverageLimit=91; \
currentCoverage=$$(grep -E '^\s*Lines' build/coverage.txt | grep -P '\d+.\d+%' -o | grep -P '^\d+' -o); \
if [ $${currentCoverage} -lt $${coverageLimit} ]; then echo "Insufficient Lines coverage, need at least $$coverageLimit%" && exit 1; fi;