summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2020-06-12 12:51:19 +0300
committerPanu Matilainen <pmatilai@redhat.com>2020-06-12 13:18:56 +0300
commit349052925edd5f7c348f01699d7c36948353ed40 (patch)
treeb91856b0651037c95445b6100043ef073e8229eb /ci
parenta2c346b3cd76770e24fb3934bd572257e85f2ce3 (diff)
downloadrpm-349052925edd5f7c348f01699d7c36948353ed40.tar.gz
Run CI test-suite in parallel, limit parallelism to $(nproc)
Up to now, test-suite has been serially executed and the actual build with ulimited parallelism, which isn't necessarily faster if the system chokes on it. Now that we can, enable parallel running of the test-suite. While at it, cap the build parallelism to our allocated maximum of $(nproc)
Diffstat (limited to 'ci')
-rw-r--r--ci/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/Dockerfile b/ci/Dockerfile
index d3db5d393..d8b0115bd 100644
--- a/ci/Dockerfile
+++ b/ci/Dockerfile
@@ -65,4 +65,4 @@ RUN ./configure \
--enable-silent-rules \
--enable-werror
-CMD make -j distcheck; rc=$?; find . -name rpmtests.log|xargs cat; exit $rc
+CMD make -j$(nproc) distcheck TESTSUITEFLAGS=-j$(nproc); rc=$?; find . -name rpmtests.log|xargs cat; exit $rc