Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
check: lint cs tests phpstan

.PHONY: tests
tests:
tests: vendor
php vendor/bin/phpunit

.PHONY: lint
lint:
lint: vendor
php vendor/bin/parallel-lint --colors \
src tests

Expand All @@ -17,13 +17,19 @@ cs-install:
composer install --working-dir build-cs

.PHONY: cs
cs:
cs: cs-install
php build-cs/vendor/bin/phpcs --standard=build-cs/phpcs.xml src tests

.PHONY: cs-fix
cs-fix:
cs-fix: cs-install
php build-cs/vendor/bin/phpcbf --standard=build-cs/phpcs.xml src tests

.PHONY: phpstan
phpstan:
phpstan: vendor
php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests

vendor: composer.json composer.lock
composer --no-interaction install

composer.lock:
test -f composer.lock || composer --no-interaction update