@@ -170,6 +170,8 @@ Options:
170170 - composerInstallHighest: "composer update", handy if host has no PHP
171171 - coveralls: Generate coverage
172172 - docsGenerate: Renders the extension ReST documentation.
173+ - rector: Run rector
174+ - fractor: Run Fractor
173175 - functional: functional tests
174176 - lint: PHP linting
175177 - unit: PHP unit tests
@@ -222,20 +224,18 @@ Options:
222224 - 15 maintained until 2027-11-11
223225 - 16 maintained until 2028-11-09
224226
225- -t <12| 13|14>
227+ -t <13|14>
226228 Only with -s composerInstall|composerInstallMin|composerInstallMax
227229 Specifies the TYPO3 CORE Version to be used
228- - 12: use TYPO3 v12 (default)
229- - 13: use TYPO3 v13
230+ - 13: use TYPO3 v13 (default)
230231 - 14: use TYPO3 v14
231232
232- -p <8.2|8.3|8.4>
233+ -p <8.2|8.3|8.4|8.5 >
233234 Specifies the PHP minor version to be used
234- - 8.0: use PHP 8.0 (default)
235- - 8.1: use PHP 8.1
236235 - 8.2: use PHP 8.2
237236 - 8.3: use PHP 8.3
238237 - 8.4: use PHP 8.4
238+ - 8.5: use PHP 8.5
239239
240240 -e "<phpunit options>"
241241 Only with -s docsGenerate|functional|unit
@@ -260,7 +260,7 @@ Options:
260260 is not listening on default port.
261261
262262 -n
263- Only with -s cgl|composerNormalize
263+ Only with -s cgl|composerNormalize|fractor
264264 Activate dry-run in CGL check that does not actively change files and only prints broken ones.
265265
266266 -u
@@ -272,14 +272,14 @@ Options:
272272 Show this help.
273273
274274Examples:
275- # Run all core unit tests using PHP 7.4
275+ # Run all core unit tests
276276 ./Build/Scripts/runTests.sh -s unit
277277
278278 # Run all core units tests and enable xdebug (have a PhpStorm listening on port 9003!)
279279 ./Build/Scripts/runTests.sh -x -s unit
280280
281- # Run unit tests in phpunit verbose mode with xdebug on PHP 8.1 and filter for test canRetrieveValueWithGP
282- ./Build/Scripts/runTests.sh -x -p 8.1 -- --filter 'classCanBeRegistered'
281+ # Run unit tests in phpunit verbose mode with xdebug on PHP 8.2 and filter for test canRetrieveValueWithGP
282+ ./Build/Scripts/runTests.sh -x -p 8.2 -- --filter 'classCanBeRegistered'
283283
284284 # Run functional tests in phpunit with a filtered test method name in a specified file
285285 # example will currently execute two tests, both of which start with the search term
@@ -309,22 +309,22 @@ ROOT_DIR="${PWD}"
309309# Option defaults
310310TEST_SUITE=" "
311311TYPO3_VERSION=" 13"
312- DBMS=" mysql "
312+ DBMS=" sqlite "
313313DBMS_VERSION=" "
314314PHP_VERSION=" 8.2"
315315PHP_XDEBUG_ON=0
316316PHP_XDEBUG_PORT=9003
317317EXTRA_TEST_OPTIONS=" "
318- CGLCHECK_DRY_RUN =0
318+ DRY_RUN =0
319319DATABASE_DRIVER=" "
320320CONTAINER_BIN=" "
321- COMPOSER_ROOT_VERSION=" 12 .0.0-dev"
321+ COMPOSER_ROOT_VERSION=" 13 .0.0-dev"
322322CONTAINER_INTERACTIVE=" -it --init"
323323HOST_UID=$( id -u)
324324HOST_PID=$( id -g)
325325USERSET=" "
326326SUFFIX=$( echo $RANDOM )
327- NETWORK=" friendsoftypo3-tea -${SUFFIX} "
327+ NETWORK=" friendsoftypo3-ttaddress -${SUFFIX} "
328328CI_PARAMS=" ${CI_PARAMS:- } "
329329CONTAINER_HOST=" host.docker.internal"
330330PHPSTAN_CONFIG_FILE=" phpstan.neon"
@@ -358,7 +358,7 @@ while getopts "a:b:s:d:i:p:e:t:xy:nhu" OPT; do
358358 ;;
359359 p)
360360 PHP_VERSION=${OPTARG}
361- if ! [[ ${PHP_VERSION} =~ ^(8.1 | 8. 2| 8.3| 8.4)$ ]]; then
361+ if ! [[ ${PHP_VERSION} =~ ^(8.2| 8.3| 8.4| 8.5 )$ ]]; then
362362 INVALID_OPTIONS+=(" -p ${OPTARG} " )
363363 fi
364364 ;;
@@ -367,7 +367,7 @@ while getopts "a:b:s:d:i:p:e:t:xy:nhu" OPT; do
367367 ;;
368368 t)
369369 TYPO3_VERSION=${OPTARG}
370- if ! [[ ${TYPO3_VERSION} =~ ^(12 | 13| 14)$ ]]; then
370+ if ! [[ ${TYPO3_VERSION} =~ ^(13| 14)$ ]]; then
371371 INVALID_OPTIONS+=(" -t ${OPTARG} " )
372372 fi
373373 ;;
@@ -378,7 +378,7 @@ while getopts "a:b:s:d:i:p:e:t:xy:nhu" OPT; do
378378 PHP_XDEBUG_PORT=${OPTARG}
379379 ;;
380380 n)
381- CGLCHECK_DRY_RUN =1
381+ DRY_RUN =1
382382 ;;
383383 h)
384384 loadHelp
471471case ${TEST_SUITE} in
472472 cgl)
473473 DRY_RUN_OPTIONS=' '
474- if [ " ${CGLCHECK_DRY_RUN } " -eq 1 ]; then
474+ if [ " ${DRY_RUN } " -eq 1 ]; then
475475 DRY_RUN_OPTIONS=' --dry-run --diff'
476476 fi
477477 COMMAND=" php -dxdebug.mode=off .Build/bin/php-cs-fixer fix -v ${DRY_RUN_OPTIONS} --config=Build/php-cs-fixer/php-cs-fixer.php --using-cache=no"
@@ -505,10 +505,6 @@ case ${TEST_SUITE} in
505505 cleanComposer
506506 stashComposerFiles
507507 ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-install-highest-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/bash -c "
508- if [ ${TYPO3_VERSION} -eq 12 ]; then
509- composer require --no-ansi --no-interaction --no-progress --no-install \
510- typo3/cms-core:^12.4.28 || exit 1
511- fi
512508 if [ ${TYPO3_VERSION} -eq 13 ]; then
513509 composer require --no-ansi --no-interaction --no-progress --no-install \
514510 typo3/cms-core:^13.4 || exit 1
@@ -532,13 +528,9 @@ case ${TEST_SUITE} in
532528 cleanComposer
533529 stashComposerFiles
534530 ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-install-lowest-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/bash -c "
535- if [ ${TYPO3_VERSION} -eq 12 ]; then
536- composer require --no-ansi --no-interaction --no-progress --no-install \
537- typo3/cms-core:^12.4.28 || exit 1
538- fi
539531 if [ ${TYPO3_VERSION} -eq 13 ]; then
540532 composer require --no-ansi --no-interaction --no-progress --no-install \
541- typo3/cms-core:^13.4.17 || exit 1
533+ typo3/cms-core:^13.4.20 || exit 1
542534 fi
543535 if [ ${TYPO3_VERSION} -eq 14 ]; then
544536 composer config minimum-stability dev
@@ -607,6 +599,24 @@ case ${TEST_SUITE} in
607599 ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-command-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/bash -c " ${COMMAND} "
608600 SUITE_EXIT_CODE=$?
609601 ;;
602+ rector)
603+ DRY_RUN_OPTIONS=' '
604+ if [ " ${DRY_RUN} " -eq 1 ]; then
605+ DRY_RUN_OPTIONS=' --dry-run'
606+ fi
607+ COMMAND=" php -dxdebug.mode=off .Build/bin/rector process ${DRY_RUN_OPTIONS} --config=Build/rector/rector.php --no-progress-bar --ansi"
608+ ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-command-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/sh -c " ${COMMAND} "
609+ SUITE_EXIT_CODE=$?
610+ ;;
611+ fractor)
612+ DRY_RUN_OPTIONS=' '
613+ if [ " ${DRY_RUN} " -eq 1 ]; then
614+ DRY_RUN_OPTIONS=' --dry-run'
615+ fi
616+ COMMAND=" php -dxdebug.mode=off .Build/bin/fractor process ${DRY_RUN_OPTIONS} --config=Build/fractor/fractor.php --ansi"
617+ ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name composer-command-${SUFFIX} -e COMPOSER_CACHE_DIR=.cache/composer -e COMPOSER_ROOT_VERSION=${COMPOSER_ROOT_VERSION} ${IMAGE_PHP} /bin/sh -c " ${COMMAND} "
618+ SUITE_EXIT_CODE=$?
619+ ;;
610620 unit)
611621 COMMAND=(.Build/bin/phpunit -c Build/phpunit/UnitTests.xml --exclude-group not-${DBMS} ${EXTRA_TEST_OPTIONS} " $@ " )
612622 ${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name unit-${SUFFIX} ${XDEBUG_MODE} -e XDEBUG_CONFIG=" ${XDEBUG_CONFIG} " ${IMAGE_PHP} " ${COMMAND[@]} "
0 commit comments