Skip to content
Snippets Groups Projects
Commit 2abe9bd6 authored by Ayke Halder's avatar Ayke Halder Committed by Christian Kuhn
Browse files

[TASK] Run test lintPhp on all CPU cores

Use all available CPUs with `Build/Scripts/runTests.sh -s lintPhp`.

Note podman CI is configured with a cpu-share to prevent starving
other jobs when one is greedy, so this change is ok with CI, too.

Resolves: #103864
Related: #103851
Related: #102385
Releases: main, 12.4, 11.5
Change-Id: I1cb7079f119677b36d6f4004398ae24bd8c5d284
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84319


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 045e8ee3
Branches
Tags
No related merge requests found
......@@ -1050,7 +1050,7 @@ case ${TEST_SUITE} in
esac
;;
lintPhp)
COMMAND="php -v | grep '^PHP'; find typo3/ -name \\*.php -print0 | xargs -0 -n1 -P4 php -dxdebug.mode=off -l >/dev/null"
COMMAND="php -v | grep '^PHP'; find typo3/ -name \\*.php -print0 | xargs -0 -n1 -P"'$(nproc 2>/dev/null || echo 4)'" php -dxdebug.mode=off -l >/dev/null"
${CONTAINER_BIN} run ${CONTAINER_COMMON_PARAMS} --name lint-php-${SUFFIX} ${IMAGE_PHP} /bin/sh -c "${COMMAND}"
SUITE_EXIT_CODE=$?
;;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment