mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 00:36:13 +01:00

[FEATURE] Add composerUnused suite to runTests.sh (#1390)

This commit is contained in:
Felix Althaus 2024-07-30 13:45:06 +02:00 committed by GitHub
parent 8d80a25d43
commit 0dce81e9ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,6 +151,7 @@ Options:
- composer: "composer" with all remaining arguments dispatched. - composer: "composer" with all remaining arguments dispatched.
- composerInstallMax: "composer update", with no platform.php config. - composerInstallMax: "composer update", with no platform.php config.
- composerInstallMin: "composer update --prefer-lowest", with platform.php set to PHP version x.x.0. - composerInstallMin: "composer update --prefer-lowest", with platform.php set to PHP version x.x.0.
- composerUnused: Finds unused Composer packages.
- docsGenerate: Renders the extension ReST documentation. - docsGenerate: Renders the extension ReST documentation.
- functional: PHP functional tests - functional: PHP functional tests
- lintTypoScript: TypoScript linting - lintTypoScript: TypoScript linting
@ -519,6 +520,11 @@ case ${TEST_SUITE} in
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-normalize-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_DOCS} /bin/sh -c "${COMMAND}" ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-normalize-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_DOCS} /bin/sh -c "${COMMAND}"
SUITE_EXIT_CODE=$? SUITE_EXIT_CODE=$?
;; ;;
composerUnused)
COMMAND="composer ci:composer:unused"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-unused-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/sh -c "${COMMAND}"
SUITE_EXIT_CODE=$?
;;
docsGenerate) docsGenerate)
mkdir -p Documentation-GENERATED-temp mkdir -p Documentation-GENERATED-temp
chown -R ${HOST_UID}:${HOST_PID} Documentation-GENERATED-temp chown -R ${HOST_UID}:${HOST_PID} Documentation-GENERATED-temp