From e2cd55cda5039dc629fb617f6a3a2ed046f8110a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 9 Oct 2018 15:53:00 +0200 Subject: [PATCH] .travis.yml: Determine number of CPUs at runtime. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1bd6142d..97115d14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,7 +75,7 @@ before_script: autoreconf -fi script: - if [[ "${TRAVIS_BRANCH}" == "coverity_scan" ]]; then exit 0; fi - ./configure - - make -j 4 + - make -j $(nproc) - make check addons: @@ -85,5 +85,5 @@ addons: description: "Build submitted via Travis CI" notification_email: collectd-changes@verplant.org build_command_prepend: "./configure; make clean" - build_command: "make -j 4" + build_command: "make -j $(nproc)" branch_pattern: coverity_scan -- 2.11.0