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=c4cfbb2be8fe60a8418aea1f7ec73dded7c37643;hb=d25ee155cac46f39bd17fd1b79c5515a6fd069c5;hp=52cefaf4033f446055e3c964be27944e74c0230f;hpb=9b67eeb9928d693bbf366718c655c482d975c7b1;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/maint/travis-ci_scripts/10_before_install.bash b/maint/travis-ci_scripts/10_before_install.bash index 52cefaf..c4cfbb2 100755 --- a/maint/travis-ci_scripts/10_before_install.bash +++ b/maint/travis-ci_scripts/10_before_install.bash @@ -40,7 +40,8 @@ if [[ -n "$SHORT_CIRCUIT_SMOKE" ]] ; then return ; fi # # 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 ))" +# Add one to make sure it doesn't go to zero +export NUMTHREADS="$(( ( $(perl -0777 -n -e 'print (/ (?: .+ ^ processor \s+ : \s+ (\d+) ) (?! ^ processor ) /smx)' < /proc/cpuinfo) + 1 ) / 3 + 1))" export CACHE_DIR="/tmp/poormanscache"