Skip to content

Commit

Permalink
Fix makefile
Browse files Browse the repository at this point in the history
Add missing dependencies, and make sure cs-fix works
  • Loading branch information
BackEndTea committed Jun 10, 2022
1 parent 8741be8 commit 8be7bee
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
.PHONY: check
check: lint cs tests phpstan

vendor:
composer install

build-cs/vendor:
composer install --working-dir build-cs

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

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

.PHONY: cs
cs:
composer install --working-dir build-cs && php build-cs/vendor/bin/phpcs
cs: build-cs/vendor
php build-cs/vendor/bin/phpcs

.PHONY: cs-fix
cs-fix:
vendor/bin/phpcbf
cs-fix: build-cs/vendor
build-cs/vendor/bin/phpcbf

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

0 comments on commit 8be7bee

Please sign in to comment.