X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2F10_before_install.bash;fp=maint%2Ftravis-ci_scripts%2F10_before_install.bash;h=b6b04b1a053403f765b4e9da02566685e44575c6;hb=bc418819ff5144637045abb29ad5e323053eef79;hp=fe3d35b158439228dafe5c34fe55b93d54efae24;hpb=cb32addcb52096b251934c9e6163f1887aaca555;p=dbsrgits%2FDBIx-Class.git diff --git a/maint/travis-ci_scripts/10_before_install.bash b/maint/travis-ci_scripts/10_before_install.bash index fe3d35b..b6b04b1 100755 --- a/maint/travis-ci_scripts/10_before_install.bash +++ b/maint/travis-ci_scripts/10_before_install.bash @@ -11,7 +11,7 @@ if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # The oneliner is a tad convoluted - basicaly what we do is # slurp the entire file and get the index off the last # `processor : XX` line -export NUMTHREADS="$(( $(perl -0777 -n -e 'print (/ (?: .+ ^ processor \s+ : \s+ (\d+) ) (?! ^ processor ) /smx)' < /proc/cpuinfo) + 1 ))" +export NUMTHREADS="$(( ( $(perl -0777 -n -e 'print (/ (?: .+ ^ processor \s+ : \s+ (\d+) ) (?! ^ processor ) /smx)' < /proc/cpuinfo) + 1 ) / 2 ))" export CACHE_DIR="/tmp/poormanscache"