fix(legacy): remove composer superuser warning (#2515)
- Disable plugins or script when running composer - Export COMPOSER_ALLOW_SUPERUSER=true to suppress the warning - Simplify makefile to build legacy files
This commit is contained in:
parent
4bf729679e
commit
d9fbb231b6
|
@ -12,8 +12,16 @@ locale-update:
|
||||||
locale-build:
|
locale-build:
|
||||||
$(MAKE) -C locale clean build
|
$(MAKE) -C locale clean build
|
||||||
|
|
||||||
|
export COMPOSER_ALLOW_SUPERUSER = true
|
||||||
|
COMPOSER_INSTALL = composer install \
|
||||||
|
--no-interaction \
|
||||||
|
--no-progress \
|
||||||
|
--no-plugins \
|
||||||
|
--no-scripts \
|
||||||
|
--optimize-autoloader
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
composer install --no-progress --no-interaction $(COMPOSER_ARGS)
|
$(COMPOSER_INSTALL)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: vendor
|
test: vendor
|
||||||
|
@ -28,8 +36,8 @@ lint: tools
|
||||||
$(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff
|
$(TOOLS)/bin/php-cs-fixer fix --verbose --dry-run --diff
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build: locale-build
|
||||||
COMPOSER_ARGS="--no-dev --ignore-platform-reqs" $(MAKE)
|
$(COMPOSER_INSTALL) --no-dev --ignore-platform-reqs
|
||||||
|
|
||||||
propel-gen: vendor
|
propel-gen: vendor
|
||||||
cd build && \
|
cd build && \
|
||||||
|
|
Loading…
Reference in New Issue