Skip to content

Commit

Permalink
[TASK] Allow additional composer options for -s composerInstall (#1380
Browse files Browse the repository at this point in the history
)

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
  • Loading branch information
DanielSiepmann authored Jul 29, 2024
1 parent 93d8c3c commit 3dca33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?
;;
Expand Down

0 comments on commit 3dca33e

Please sign in to comment.