]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pull-requests: Override processor numbers 371/head
authorErwan Velu <erwan@redhat.com>
Mon, 25 Apr 2016 14:40:47 +0000 (16:40 +0200)
committerErwan Velu <erwan@redhat.com>
Mon, 9 May 2016 14:21:32 +0000 (16:21 +0200)
By default, run-make-check divide by 2 the number of processors to be used
during the make process.

When building a PR on our build farm, we need to use the full potential of the
build hosts.

By overriding NPROC with the actual number of processors, we speedup the build
process and use in a more efficient way the build hosts.

ceph-pull-requests/config/definitions/ceph-pull-requests.yml

index b1675a4e39b8d8de824bc757464320c37232a17b..000588671f20267021dfd94f3481595a74f9bb3e 100644 (file)
@@ -46,7 +46,7 @@
           wipe-workspace: true
 
     builders:
-      - shell: "timeout 7200 ./run-make-check.sh"
+      - shell: "export NPROC=$(nproc); timeout 7200 ./run-make-check.sh"
 
     publishers:
       - github-notifier