X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2Ftravis-ci_scripts%2F10_before_install.bash;h=da10ee40d7fe24f23d86cad3dee665315d4f86a7;hb=ac4e80df;hp=ddc2589b3e5ca5b10d327f16bc78f445c8f26414;hpb=afeb40d23677e897d27b843b8d976d7c8945e6ce;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 ddc2589..da10ee4 100755 --- a/maint/travis-ci_scripts/10_before_install.bash +++ b/maint/travis-ci_scripts/10_before_install.bash @@ -38,10 +38,9 @@ if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # slurp the entire file and get the index off the last # `processor : XX` line # -# We also divide the result by two, otherwise the travis VM -# gets overloaded (the amount of available swap is just TOOOO -# damn small) -export NUMTHREADS="$(( ( $(perl -0777 -n -e 'print (/ (?: .+ ^ processor \s+ : \s+ (\d+) ) (?! ^ processor ) /smx)' < /proc/cpuinfo) + 1 ) / 2 ))" +# We also divide the result by a factor, otherwise the travis VM gets +# overloaded (the amount of available swap is just TOOOO damn small) +export NUMTHREADS="$(( ( $(perl -0777 -n -e 'print (/ (?: .+ ^ processor \s+ : \s+ (\d+) ) (?! ^ processor ) /smx)' < /proc/cpuinfo) + 1 ) / 3 ))" export CACHE_DIR="/tmp/poormanscache"