35
35
all : # # Runs everything ####
36
36
@grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -v " ####" | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | xargs --open-tty $(MAKE )
37
37
38
- syntax-php : # # Lint PHP syntax
38
+ syntax-php : # # Lint PHP syntax ##%##
39
39
$(DOCKER_RUN ) vendor/bin/parallel-lint --exclude vendor .
40
40
41
41
cs-fix : # # Fix any automatically fixable code style issues ###
@@ -50,15 +50,15 @@ stan: ## Run static analysis (PHPStan)
50
50
psalm : # # Run static analysis (Psalm)
51
51
$(DOCKER_RUN ) vendor/bin/psalm --threads=$(THREADS ) --shepherd --stats --config=./etc/qa/psalm.xml
52
52
53
- unit-testing : # # Run tests
53
+ unit-testing : # # Run tests ##%##
54
54
$(DOCKER_RUN ) vendor/bin/phpunit --colors=always -c ./etc/qa/phpunit.xml --coverage-text --coverage-html ./var/tests-unit-coverage-html --coverage-clover ./var/tests-unit-clover-coverage.xml
55
55
$(DOCKER_RUN ) test -n " $( COVERALLS_REPO_TOKEN) " && test -n " $( COVERALLS_RUN_LOCALLY) " && test -f ./var/tests-unit-clover-coverage.xml && vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true
56
56
57
57
unit-testing-raw : # # Run tests ####
58
58
php vendor/phpunit/phpunit/phpunit --colors=always -c ./etc/qa/phpunit.xml --coverage-text --coverage-html ./var/tests-unit-coverage-html --coverage-clover ./var/tests-unit-clover-coverage.xml
59
59
test -n " $( COVERALLS_REPO_TOKEN) " && test -n " $( COVERALLS_RUN_LOCALLY) " && test -f ./var/tests-unit-clover-coverage.xml && ./vendor/bin/php-coveralls -v --coverage_clover ./build/logs/clover.xml --json_path ./var/tests-unit-clover-coverage-upload.json || true
60
60
61
- mutation-testing : # # Run mutation testing
61
+ mutation-testing : # # Run mutation testing ##%##
62
62
$(DOCKER_RUN ) vendor/bin/roave-infection-static-analysis-plugin --ansi --log-verbosity=all --threads=$(THREADS ) --psalm-config etc/qa/psalm.xml || (cat ./var/infection.log && false)
63
63
64
64
mutation-testing-raw : # # Run mutation testing ####
@@ -98,7 +98,10 @@ outdated: ## Show outdated dependencies ####
98
98
$(DOCKER_RUN ) composer outdated
99
99
100
100
task-list-ci : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
101
- @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -v " ###" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
101
+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep " ##\%##" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
102
+
103
+ task-list-ci-targeted : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
104
+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -v " ###" | grep -v " ##\%##" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
102
105
103
106
help : # # Show this help ####
104
107
@printf " \033[33mUsage:\033[0m\n make [target]\n\n\033[33mTargets:\033[0m\n"
0 commit comments