From: DRC Date: Mon, 11 Sep 2017 14:48:33 +0000 (-0500) Subject: Travis: Limit parallel make jobs to # of CPU cores X-Git-Tag: 1.5.3~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db0dec3c5a10c57706ffb154584208755134f857;p=libjpeg-turbo Travis: Limit parallel make jobs to # of CPU cores This tends to be faster than 'make -j', since it is making more wise use of the available resources. --- diff --git a/.travis.yml b/.travis.yml index c1e36bd..78f113a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,7 +84,8 @@ script: mkdir build && pushd build && ../configure ${CONFIGURE_FLAGS} && - make -j && + export NUMCPUS=`grep -c '^processor' /proc/cpuinfo` && + make -j$NUMCPUS --load-average=$NUMCPUS && if [[ "${CONFIGURE_FLAGS}" =~ "with-12bit" || "${CONFIGURE_FLAGS}" =~ "without-simd" ]]; then make test FLOATTEST=32bit;