-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 987 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 987 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
composer-install:
composer install
test: composer-install
vendor/bin/phpunit --configuration ../SOLID/phpunit.xml.dist
coverage: composer-install
XDEBUG_MODE=coverage vendor/bin/phpunit --configuration ../SOLID/phpunit.xml.dist
coverage-report: coverage
XDEBUG_MODE=coverage vendor/bin/phpunit --configuration ../SOLID/phpunit.xml.dist --coverage-html=artifacts/coverage \
&& open artifacts/coverage/index.html
clean:
rm -rf artifacts/
static: static-phpstan static-codesniffer static-codestyle-check
static-codesniffer: composer-install
vendor/bin/phpcs --standard=PSR2 src tests
static-phpstan: composer-install
vendor/bin/phpstan analyze $(PHPSTAN_PARAMS)
static-codestyle-fix: composer-install
vendor/bin/php-cs-fixer fix --diff $(CS_PARAMS)
static-codestyle-check:
$(MAKE) static-codestyle-fix CS_PARAMS="--dry-run"
.PHONY: composer-install test coverage coverage-report clean static static-codesniffer static-phpstan static-codestyle-fix static-codestyle-check