|
29 | 29 | #--- |
30 | 30 |
|
31 | 31 | RANDOM_SEED := $(shell head -200 /dev/urandom | cksum | cut -f1 -d " ") |
32 | | -PHPUNIT = php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED) |
33 | | - |
34 | | -#--- |
35 | | - |
36 | | -COMPOSER_FLAGS_ANSI_PROFILE = --ansi --profile |
37 | | -COMPOSER_FLAGS_OPTIMIZE_WITH_ALL_DEPS = --optimize-autoloader --with-all-dependencies |
38 | 32 |
|
39 | 33 | ### |
40 | 34 | # HELP |
@@ -78,32 +72,32 @@ endef |
78 | 72 |
|
79 | 73 | .PHONY: composer-dump |
80 | 74 | composer-dump: ## Application: <composer dump-auto> |
81 | | - @composer dump-auto $(COMPOSER_FLAGS_ANSI_PROFILE) --no-interaction --optimize --strict-psr |
| 75 | + $(DOCKER_RUN_AS_USER) composer dump-auto --ansi --no-plugins --profile --classmap-authoritative --apcu --strict-psr |
82 | 76 | $(call taskDone) |
83 | 77 |
|
84 | 78 | .PHONY: composer-install |
85 | 79 | composer-install: ## Application: <composer install> |
86 | | - @composer config --global discard-changes true && composer install $(COMPOSER_FLAGS_ANSI_PROFILE) --no-interaction --optimize-autoloader --audit |
| 80 | + $(DOCKER_RUN_AS_USER) composer install --ansi --no-plugins --classmap-authoritative --audit --apcu-autoloader |
87 | 81 | $(call taskDone) |
88 | 82 |
|
89 | 83 | .PHONY: composer-remove |
90 | | -composer-remove: require-packages ## Application: <composer remove> |
91 | | - @composer remove $(COMPOSER_FLAGS_ANSI_PROFILE) $(COMPOSER_FLAGS_OPTIMIZE_WITH_ALL_DEPS) --no-interaction --unused $(packages) |
| 84 | +composer-remove: require-package ## Application: <composer remove> |
| 85 | + $(DOCKER_RUN_AS_USER) composer remove --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies --unused |
92 | 86 | $(call taskDone) |
93 | 87 |
|
94 | 88 | .PHONY: composer-require-dev |
95 | 89 | composer-require-dev: ## Application: <composer require --dev> |
96 | | - @composer require $(COMPOSER_FLAGS_ANSI_PROFILE) $(COMPOSER_FLAGS_OPTIMIZE_WITH_ALL_DEPS) --interactive --sort-packages --dev |
| 90 | + $(DOCKER_RUN_AS_USER) composer require --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies --prefer-stable --sort-packages --dev |
97 | 91 | $(call taskDone) |
98 | 92 |
|
99 | 93 | .PHONY: composer-require |
100 | 94 | composer-require: ## Application: <composer require> |
101 | | - @composer require $(COMPOSER_FLAGS_ANSI_PROFILE) $(COMPOSER_FLAGS_OPTIMIZE_WITH_ALL_DEPS) --interactive --sort-packages |
| 95 | + $(DOCKER_RUN_AS_USER) composer require --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies --prefer-stable --sort-packages |
102 | 96 | $(call taskDone) |
103 | 97 |
|
104 | 98 | .PHONY: composer-update |
105 | 99 | composer-update: ## Application: <composer update> |
106 | | - @composer update $(COMPOSER_FLAGS_ANSI_PROFILE) $(COMPOSER_FLAGS_OPTIMIZE_WITH_ALL_DEPS) --no-interaction |
| 100 | + $(DOCKER_RUN_AS_USER) composer update --ansi --no-plugins --classmap-authoritative --apcu-autoloader --with-all-dependencies |
107 | 101 | $(call taskDone) |
108 | 102 |
|
109 | 103 | ### |
@@ -138,13 +132,13 @@ phpstan: ## QA: <composer phpstan> |
138 | 132 | tests: ## QA: <composer tests> |
139 | 133 | @$(eval testsuite ?= 'Unit') |
140 | 134 | @$(eval filter ?= '.') |
141 | | - @$(PHPUNIT) --testsuite=$(testsuite) --filter=$(filter) |
| 135 | + @php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED) --testsuite=$(testsuite) --filter=$(filter) |
142 | 136 | $(call taskDone) |
143 | 137 |
|
144 | 138 | .PHONY: tests-unit |
145 | 139 | tests-unit: ## QA: <composer tests-unit> |
146 | 140 | @$(eval filter ?= '.') |
147 | | - @$(PHPUNIT) --testsuite=Unit --filter=$(filter) |
| 141 | + @php -d xdebug.mode=off vendor/bin/phpunit --configuration=phpunit.xml --testdox --colors --order-by=random --random-order-seed=$(RANDOM_SEED) --testsuite=Unit --filter=$(filter) |
148 | 142 | $(call taskDone) |
149 | 143 |
|
150 | 144 | .PHONY: coverage |
|
0 commit comments