From 73887116f9ac2e0eab26667d404953af35db2fe8 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 21 Nov 2016 12:39:29 -0800 Subject: [PATCH] try JOBS as multiple of CPUs --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 08eb27e5bf..0f8664c22e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,11 +119,11 @@ before_install: - if [[ ! -z $TARGET_ARCH ]] ; then source ./scripts/travis/before_install.$TARGET_ARCH.sh ; fi - | if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then - export JOBS=$((`nproc` + 1)) + export JOBS=$((`nproc` * 2)) fi - | if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then - export JOBS=4 + export JOBS=$((`sysctl -n hw.ncpu` * 2)) sudo mdutil -i off / fi - echo "Using ${JOBS} jobs"