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

https://github.com/neovim/bot-ci/pull/105#issuecomment-309282132
This commit is contained in:
Justin M. Keyes 2017-06-25 07:35:01 +02:00
parent a469704495
commit 4b08b5d194

View File

@ -9,9 +9,12 @@ set -e
test -z "$POSH_VERSION" && set -u
echo_jobs_num() {
[ -n "$TRAVIS_CI_BUILD" ] \
&& echo 1 \
|| echo $(( $(grep -c "^processor" /proc/cpuinfo) + 1 ))
if [ -n "${TRAVIS:-}" ] ; then
# HACK: /proc/cpuinfo on Travis CI is misleading, so hardcode 1.
echo 1
else
echo $(( $(grep -c "^processor" /proc/cpuinfo) + 1 ))
fi
}
help() {