From 3dca33ebec8876358e8785c4ad91988a8381cf8a Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 29 Jul 2024 19:44:01 +0200 Subject: [PATCH] [TASK] Allow additional composer options for `-s composerInstall` (#1380) This change modifies the `Build/Script/runTests.sh` command dispatcher to allow passing composer options to the `composer install` subcommand, for example Build/Scripts/runTests.sh -s composerInstall \ -- --prefer-source Note that this is already possible using the generic `-s composer` dispatcher but would resolve some user confusion. This aligns our implementation of runTests.sh with TYPO3 core, see: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84870 Resolves: #1346 --- Build/Scripts/runTests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index 9a9d491..5953d72 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -495,7 +495,7 @@ case ${TEST_SUITE} in SUITE_EXIT_CODE=$? ;; composerInstall) - COMMAND="composer install" + COMMAND="composer install $@" ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-install-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/sh -c "${COMMAND}" SUITE_EXIT_CODE=$? ;;