From: D. Ilmari Mannsåker Date: Mon, 25 Jan 2016 14:26:09 +0000 (+0000) Subject: (trv) Make sure $NUMTHREADS isn't zero X-Git-Tag: 0.07046~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d25ee155cac46f39bd17fd1b79c5515a6fd069c5;p=dbsrgits%2FDBIx-Class-Schema-Loader.git (trv) Make sure $NUMTHREADS isn't zero --- 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"