|
26 | 26 | RESET := "" |
27 | 27 | endif |
28 | 28 |
|
29 | | -#--- |
30 | | - |
31 | | -RANDOM_ORDER_SEED := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ") |
32 | | - |
33 | | -#--- |
34 | | - |
35 | 29 | ### |
36 | 30 | # HELP |
37 | 31 | ### |
@@ -83,97 +77,89 @@ endef |
83 | 77 | ### |
84 | 78 |
|
85 | 79 | .PHONY: composer-dump |
86 | | -composer-dump: ## [COMPOSER] Executes <composer dump-auto> inside the container |
| 80 | +composer-dump: ## Composer: executes <composer dump-auto> inside the container |
87 | 81 | $(call showInfo,"Executing \<composer dump-auto\>...") |
88 | 82 | @echo "" |
89 | | - @$(DOCKER_RUN_AS_USER) composer dump-auto --ansi --no-plugins --profile --classmap-authoritative --apcu --strict-psr |
| 83 | + @$(DOCKER_RUN_AS_USER) composer dump-auto |
90 | 84 | $(call taskDone) |
91 | 85 |
|
92 | 86 | .PHONY: composer-install |
93 | | -composer-install: ## [COMPOSER] Executes <composer install> inside the container |
| 87 | +composer-install: ## Composer: executes <composer install> inside the container |
94 | 88 | $(call showInfo,"Executing \<composer install\>...") |
95 | 89 | @echo "" |
96 | | - @$(DOCKER_RUN_AS_USER) composer install --ansi --no-plugins --classmap-authoritative --audit --apcu-autoloader |
| 90 | + @$(DOCKER_RUN_AS_USER) composer install |
97 | 91 | $(call taskDone) |
98 | 92 |
|
99 | 93 | .PHONY: composer-remove |
100 | | -composer-remove: require-package ## [COMPOSER] Executes <composer remove> inside the container |
| 94 | +composer-remove: require-package ## Composer: executes <composer remove> inside the container |
101 | 95 | $(call showInfo,"Executing \<composer remove\>...") |
102 | 96 | @echo "" |
103 | | - @$(DOCKER_RUN_AS_USER) composer remove --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies --unused |
| 97 | + @$(DOCKER_RUN_AS_USER) composer remove |
104 | 98 | $(call taskDone) |
105 | 99 |
|
106 | 100 | .PHONY: composer-require-dev |
107 | | -composer-require-dev: ## [COMPOSER] Executes <composer require --dev> inside the container |
| 101 | +composer-require-dev: ## Composer: executes <composer require --dev> inside the container |
108 | 102 | $(call showInfo,"Executing \<composer require --dev\>...") |
109 | 103 | @echo "" |
110 | | - @$(DOCKER_RUN_AS_USER) composer require --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies --prefer-stable --sort-packages --dev |
| 104 | + @$(DOCKER_RUN_AS_USER) composer require --dev |
111 | 105 | $(call taskDone) |
112 | 106 |
|
113 | 107 | .PHONY: composer-require |
114 | | -composer-require: ## [COMPOSER] Executes <composer require> inside the container |
| 108 | +composer-require: ## Composer: executes <composer require> inside the container |
115 | 109 | $(call showInfo,"Executing \<composer require\>...") |
116 | 110 | @echo "" |
117 | | - @$(DOCKER_RUN_AS_USER) composer require --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies --prefer-stable --sort-packages |
| 111 | + @$(DOCKER_RUN_AS_USER) composer require |
118 | 112 | $(call taskDone) |
119 | 113 |
|
120 | 114 | .PHONY: composer-update |
121 | | -composer-update: ## [COMPOSER] Executes <composer update> inside the container |
| 115 | +composer-update: ## Composer: executes <composer update> inside the container |
122 | 116 | $(call showInfo,"Executing \<composer update\>...") |
123 | 117 | @echo "" |
124 | | - @$(DOCKER_RUN_AS_USER) composer update --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies |
| 118 | + @$(DOCKER_RUN_AS_USER) composer update |
125 | 119 | $(call taskDone) |
126 | 120 |
|
127 | 121 | ### |
128 | 122 | # QA |
129 | 123 | ### |
130 | 124 |
|
131 | 125 | .PHONY: check-syntax |
132 | | -check-syntax: ## [QA] Executes <check-syntax> inside the container <filter=[app|path]> |
133 | | - @$(eval filter ?= 'app') |
134 | | - $(call showInfo,"Check code syntax...") |
| 126 | +check-syntax: ## QA: executes <check-syntax> inside the container |
| 127 | + $(call showInfo,"Executing \<composer check-syntax\>...") |
135 | 128 | @echo "" |
136 | | - @vendor/bin/parallel-lint --colors -e php -j 10 $(filter) |
| 129 | + @$(DOCKER_RUN_AS_USER) composer check-syntax |
137 | 130 | $(call taskDone) |
138 | 131 |
|
139 | 132 | .PHONY: check-style |
140 | | -check-style: ## [QA] Executes <check-style> inside the container <filter=[app|path]> |
141 | | - @$(eval filter ?= 'app') |
142 | | - $(call showInfo,"Checking code style...") |
| 133 | +check-style: ## QA: executes <check-style> inside the container |
| 134 | + $(call showInfo,"Executing \<composer check-style\>...") |
143 | 135 | @echo "" |
144 | | - @vendor/bin/phpcs -p --colors --standard=phpcs.xml $(filter) |
| 136 | + @$(DOCKER_RUN_AS_USER) composer check-style |
145 | 137 | $(call taskDone) |
146 | 138 |
|
147 | 139 | .PHONY: fix-style |
148 | | -fix-style: ## [QA] Executes <fix-style> inside the container <filter=[app|path]> |
149 | | - @$(eval filter ?= 'app') |
150 | | - $(call showInfo,"Fixing code style...") |
| 140 | +fix-style: ## QA: executes <fix-style> inside the container |
| 141 | + $(call showInfo,"Executing \<composer fix-style\>...") |
151 | 142 | @echo "" |
152 | | - @vendor/bin/phpcbf -p --colors --standard=phpcs.xml $(filter) |
| 143 | + @$(DOCKER_RUN_AS_USER) composer fix-style |
153 | 144 | $(call taskDone) |
154 | 145 |
|
155 | 146 | .PHONY: phpstan |
156 | | -phpstan: ## [QA] Executes <phpstan> inside the container <filter=[app|path]> |
157 | | - @$(eval filter ?= 'app') |
158 | | - $(call showInfo,"Executing PHPStan...") |
| 147 | +phpstan: ## QA: executes <composer phpstan> inside the container |
| 148 | + $(call showInfo,"Executing \<composer phpstan\>...") |
159 | 149 | @echo "" |
160 | | - @vendor/bin/phpstan analyse --ansi --memory-limit=1G --no-progress --configuration=phpstan.neon $(filter) |
| 150 | + @$(DOCKER_RUN_AS_USER) composer phpstan |
161 | 151 | $(call taskDone) |
162 | 152 |
|
163 | 153 | .PHONY: tests |
164 | | -tests: ## [QA] Executes <phpunit> inside the container <testsuite=[Unit|...]> <filter=[.|method + filename]> |
165 | | - @$(eval testsuite ?= 'Unit') |
166 | | - @$(eval filter ?= '.') |
167 | | - $(call showInfo,"Executing PHPUnit...") |
| 154 | +test: ## QA: executes <composer paratest> inside the container |
| 155 | + $(call showInfo,"Executing \<composer paratest\>...") |
168 | 156 | @echo "" |
169 | | - @XDEBUG_MODE=off vendor/bin/phpunit --testsuite=$(testsuite) --filter=$(filter) --configuration=phpunit.xml --coverage-text --testdox --colors --order-by=random --random-order-seed=$(RANDOM_ORDER_SEED) |
| 157 | + @$(DOCKER_RUN_AS_USER) composer paratest |
170 | 158 | $(call taskDone) |
171 | 159 |
|
172 | 160 | .PHONY: coverage |
173 | | -coverage: ## [QA] Executes <phpunit with pcov coverage support> inside the container |
174 | | - $(call showInfo,"Generating Code Coverage report...") |
| 161 | +coverage: ## QA: executes <composer paracoverage> inside the container |
| 162 | + $(call showInfo,"Executing \<composer paracoverage\>...") |
175 | 163 | @echo "" |
176 | | - @rm -Rf .coverage |
177 | | - @mkdir .coverage |
178 | | - @XDEBUG_MODE=off vendor/bin/phpunit --coverage-html=.coverage --configuration=phpunit.xml --coverage-text --testdox --colors --order-by=random --random-order-seed=$(RANDOM_ORDER_SEED) |
| 164 | + @$(DOCKER_RUN_AS_USER) composer paracoverage |
179 | 165 | $(call taskDone) |
0 commit comments