From 9b49f07ce36a0b5838e4a6152bfc5de9fb44ed38 Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Mon, 29 Jul 2024 19:27:47 +0200 Subject: [PATCH 1/2] [FEATURE] Add composerUnused suite to runTests.sh --- Build/Scripts/runTests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index c730e242..fc2bb453 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -151,6 +151,7 @@ Options: - composer: "composer" with all remaining arguments dispatched. - composerInstallMax: "composer update", with no platform.php config. - 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. - functional: PHP functional tests - 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}" 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) mkdir -p Documentation-GENERATED-temp chown -R ${HOST_UID}:${HOST_PID} Documentation-GENERATED-temp From 1d93a400ccf1d3cda93a40d30ab0396f42ceb319 Mon Sep 17 00:00:00 2001 From: Felix Althaus Date: Mon, 29 Jul 2024 19:50:08 +0200 Subject: [PATCH 2/2] [TASK] Fix small typo --- 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 fc2bb453..52445735 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -151,7 +151,7 @@ Options: - composer: "composer" with all remaining arguments dispatched. - composerInstallMax: "composer update", with no platform.php config. - composerInstallMin: "composer update --prefer-lowest", with platform.php set to PHP version x.x.0. - - composerUnused: Finds unused composer packages. + - composerUnused: Finds unused Composer packages. - docsGenerate: Renders the extension ReST documentation. - functional: PHP functional tests - lintTypoScript: TypoScript linting