From a6e15803458fb682eabf6af90cd03ae5f3b30129 Mon Sep 17 00:00:00 2001 From: Gert de Pagter Date: Fri, 10 Jun 2022 21:44:03 +0200 Subject: [PATCH] Fix makefile Add missing dependencies, and make sure cs-fix works --- Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 5c15b29..9042c36 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,29 @@ .PHONY: check check: lint cs tests phpstan +vendor: $(wildcard composer.lock) composer.json + composer update + +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