From: Erik Bernhardson Date: Thu, 8 Dec 2016 22:12:38 +0000 (-0800) Subject: Use 1 processes instead of 4 for phan X-Git-Tag: 1.31.0-rc.0~4633^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=f5acb9700a6ea4ac2a6c60c7ca722ea666f99a0e Use 1 processes instead of 4 for phan Running against mediawiki core phan needs around 1GB of memory per process. >4GB is too excessive for a default setting. Instead set the default to 1 process and add the ability for users to select more processes on the command line. Bug: T132636 Change-Id: I3d9fa462916fba519fe6d7f1916f881eefb6a942 --- diff --git a/tests/phan/bin/phan b/tests/phan/bin/phan index 07caee6a59..e9222a44d6 100755 --- a/tests/phan/bin/phan +++ b/tests/phan/bin/phan @@ -31,9 +31,9 @@ php7.0 $PHAN \ --project-root-directory "$ROOT" \ --config-file "$ROOT/tests/phan/config.php" \ --output "$ROOT/tests/phan/issues/issues-${REV}" \ - -j 4 + "${@}" -# Re-link the latest directory +# Re-link the latest file rm -f "${ISSUES}/latest" ln -s "${RUN}" "${ISSUES}/latest"