From e529fca266231f9521027a56250a66cdb1898f14 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Thu, 3 Jan 2019 23:06:59 +0300 Subject: [PATCH] Use the actual number of logical CPUs for the number of CI build/test jobs. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3fa6587..1181eff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -268,7 +268,8 @@ install: script: - |- echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam - - ./b2 libs/detail/test toolset=$TOOLSET cxxstd=$CXXSTD + - BUILD_JOBS=`(nproc || sysctl -n hw.ncpu) 2> /dev/null` + - ./b2 -j $BUILD_JOBS libs/detail/test toolset=$TOOLSET cxxstd=$CXXSTD notifications: email: