@@ -36,42 +36,42 @@ 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
38
39
- syntax-php : # # Lint PHP syntax
39
+ syntax-php : # # Lint PHP syntax ##*LH*##
40
40
$(DOCKER_RUN ) vendor/bin/parallel-lint --exclude vendor .
41
41
42
42
cs-fix : # # Fix any automatically fixable code style issues ###
43
43
$(DOCKER_RUN ) vendor/bin/phpcbf --parallel=$(THREADS ) --cache=./var/.phpcs.cache.json --standard=./etc/qa/phpcs.xml || $(DOCKER_RUN ) vendor/bin/phpcbf --parallel=$(THREADS ) --cache=./var/.phpcs.cache.json --standard=./etc/qa/phpcs.xml || $(DOCKER_RUN ) vendor/bin/phpcbf --parallel=$(THREADS ) --cache=./var/.phpcs.cache.json --standard=./etc/qa/phpcs.xml -vvvv
44
44
45
- cs : # # Check the code for code style issues
45
+ cs : # # Check the code for code style issues ##*LCH*##
46
46
$(DOCKER_RUN ) vendor/bin/phpcs --parallel=$(THREADS ) --cache=./var/.phpcs.cache.json --standard=./etc/qa/phpcs.xml
47
47
48
- stan : # # Run static analysis (PHPStan)
48
+ stan : # # Run static analysis (PHPStan) ##*LCH*##
49
49
$(DOCKER_RUN ) vendor/bin/phpstan analyse src tests --level max --ansi -c ./etc/qa/phpstan.neon
50
50
51
- unit-testing : # # Run tests
51
+ unit-testing : # # Run tests ##*A*##
52
52
$(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
53
53
$(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
54
54
55
55
unit-testing-raw : # # Run tests ####
56
56
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
57
57
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
58
58
59
- mutation-testing : # # Run mutation testing
59
+ mutation-testing : # # Run mutation testing ##*A*##
60
60
$(DOCKER_RUN ) vendor/bin/infection --ansi --log-verbosity=all --threads=$(THREADS ) || (cat ./var/infection.log && false)
61
61
62
62
mutation-testing-raw : # # Run mutation testing ####
63
63
vendor/bin/infection --ansi --log-verbosity=all --threads=$(THREADS ) || (cat ./var/infection.log && false)
64
64
65
- composer-require-checker : # # Ensure we require every package used in this package directly
65
+ composer-require-checker : # # Ensure we require every package used in this package directly ##*C*##
66
66
$(DOCKER_RUN ) vendor/bin/composer-require-checker --ignore-parse-errors --ansi -vvv --config-file=./etc/qa/composer-require-checker.json
67
67
68
- composer-unused : # # Ensure we don't require any package we don't use in this package directly
68
+ composer-unused : # # Ensure we don't require any package we don't use in this package directly ##*C*##
69
69
$(DOCKER_RUN ) vendor/bin/composer-unused --ansi --configuration=./etc/qa/composer-unused.php
70
70
71
71
libyear : # ## Calculate how many libyear this package is behind with dependencies
72
72
$(DOCKER_RUN ) vendor/bin/libyear
73
73
74
- backward-compatibility-check : # # Check code for backwards incompatible changes
74
+ backward-compatibility-check : # # Check code for backwards incompatible changes ##*C*##
75
75
$(MAKE ) backward-compatibility-check-raw || true
76
76
77
77
backward-compatibility-check-raw : # # Check code for backwards incompatible changes, doesn't ignore the failure ###
@@ -96,6 +96,18 @@ help: ## Show this help ####
96
96
task-list-ci : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
97
97
@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]'
98
98
99
+ task-list-ci-all : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
100
+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -E " ##\*A\*##" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
101
+
102
+ task-list-ci-low : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
103
+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -E " ##\*[L]{1,3}\*##" | grep -v " ###" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
104
+
105
+ task-list-ci-locked : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
106
+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -E " ##\*[C]{1,3}\*##" | grep -v " ###" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
107
+
108
+ task-list-ci-high : # # CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
109
+ @grep -E ' ^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | grep -E " ##\*[H]{1,3}\*##" | grep -v " ###" | sort | awk ' BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c ' split("\n")| .[0:-1]'
110
+
99
111
# task-list-ci: ## CI: Generate a JSON array of jobs to run, matches the commands run when running `make (|all)` ####
100
112
# @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed 's/[^:]*://' | grep "##\%##" | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "%s\n", $$1}' | jq --raw-input --slurp -c 'split("\n")| .[0:-1]'
101
113
#
0 commit comments