Use one job less on CI

This commit is contained in:
Vinnie Falco
2017-06-19 07:35:26 -07:00
parent 0a4f964811
commit 2ee6646c60
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Version 61:
* Tidy up http-crawl example
* Add multi_port to server-framework
* Tidy up resolver calls
* Use one job on CI
API Changes:

View File

@ -43,6 +43,9 @@ elif [[ $(uname -s) == "Linux" ]]; then
if [[ "${TRAVIS}" == "true" && ${NUM_PROCESSORS:=2} > ${num_jobs} ]]; then
num_jobs=$NUM_PROCESSORS
fi
if [[ "$TRAVIS" == "true" ]] && (( "$num_jobs" > 1)); then
num_jobs=$((num_jobs - 1))
fi
fi
echo "using toolset: $CC"