mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 18:56:13 +02:00

[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
This commit is contained in:
Daniel Siepmann 2024-07-29 19:44:01 +02:00 committed by GitHub
parent 93d8c3c781
commit 3dca33ebec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -495,7 +495,7 @@ case ${TEST_SUITE} in
SUITE_EXIT_CODE=$? SUITE_EXIT_CODE=$?
;; ;;
composerInstall) 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}" ${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=$? SUITE_EXIT_CODE=$?
;; ;;