Skip to content

Commit e2cd55c

Browse files
committed
.travis.yml: Determine number of CPUs at runtime.
1 parent 379ce80 commit e2cd55c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ before_script: autoreconf -fi
7575
script:
7676
- if [[ "${TRAVIS_BRANCH}" == "coverity_scan" ]]; then exit 0; fi
7777
- ./configure
78-
- make -j 4
78+
- make -j $(nproc)
7979
- make check
8080

8181
addons:
@@ -85,5 +85,5 @@ addons:
8585
description: "Build submitted via Travis CI"
8686
notification_email: collectd-changes@verplant.org
8787
build_command_prepend: "./configure; make clean"
88-
build_command: "make -j 4"
88+
build_command: "make -j $(nproc)"
8989
branch_pattern: coverity_scan

0 commit comments

Comments
 (0)