diff options
author | Vincent Peugnet <vincent-peugnet@riseup.net> | 2021-03-04 18:24:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 18:24:55 +0100 |
commit | fd45c302c76be4d293ff9f166ef063a10d88db87 (patch) | |
tree | 5dca9a66df80f1a2d2e5b63512af997b8c40c88f | |
parent | c651882d690eeeac7c2af1d4cf11ba25406643fa (diff) | |
parent | 0e22e5ba1be5b561907b7739cab5a59812f08d8f (diff) | |
download | wcms-fd45c302c76be4d293ff9f166ef063a10d88db87.tar.gz wcms-fd45c302c76be4d293ff9f166ef063a10d88db87.zip |
Merge pull request #133 from n-peugnet/fix-make-checks
fix: make checks
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -171,26 +171,26 @@ buildclean: # Run all checks. .PHONY: check -check: vendor lint analyse test +check: lint analyse test # Lint php code with phpcs. .PHONY: lint -lint: $(phpcs_dir) - phpcs --report-full --report-summary --cache=$(phpcs_dir)/result.cache || printf "run 'make fix'\n\n"; exit 1 +lint: $(phpcs_dir) vendor + phpcs --report-full --report-summary --cache=$(phpcs_dir)/result.cache || { printf "run 'make fix'\n\n"; exit 1; } # fix php code with phpcbf. .PHONY: fix -fix: $(phpcs_dir) +fix: $(phpcs_dir) vendor phpcbf || exit 0 # Analyse php code with phpstan. .PHONY: analyse -analyse: +analyse: vendor phpstan analyse # Test php code with phpunit. .PHONY: test -test: $(phpunit_dir) +test: $(phpunit_dir) vendor phpunit # Create dirs if the do not exist |