scripts/pvscheck.sh: HACK: de-parallelize on CI

References https://github.com/neovim/bot-ci/pull/105
This commit is contained in:
Justin M. Keyes 2017-06-25 03:26:04 +02:00
parent ca385db4d0
commit a469704495

View File

@ -9,7 +9,9 @@ set -e
test -z "$POSH_VERSION" && set -u test -z "$POSH_VERSION" && set -u
echo_jobs_num() { echo_jobs_num() {
echo $(( $(grep -c "^processor" /proc/cpuinfo) + 1 )) [ -n "$TRAVIS_CI_BUILD" ] \
&& echo 1 \
|| echo $(( $(grep -c "^processor" /proc/cpuinfo) + 1 ))
} }
help() { help() {