[ovs-dev,7/8] travis: Use parallel jobs for DPDK and sparse builds.

Message ID 20190208164900.30679-8-i.maximets@samsung.com
State Accepted
Headers show
Series
  • travis: Fix equal distcheck runs.
Related show

Commit Message

Ilya Maximets Feb. 8, 2019, 4:48 p.m.
This allows to save a few minutes.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
---
 .travis/linux-build.sh   | 2 +-
 .travis/linux-prepare.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh
index b1b2c831b..0cf5da6af 100755
--- a/.travis/linux-build.sh
+++ b/.travis/linux-build.sh
@@ -73,7 +73,7 @@  function install_dpdk()
         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/$TARGET/lib
     fi
     make config CC=gcc T=$TARGET
-    make CC=gcc RTE_KERNELDIR=$KERNELSRC
+    make -j4 CC=gcc RTE_KERNELDIR=$KERNELSRC
     echo "Installed DPDK source in $(pwd)"
     cd ..
 }
diff --git a/.travis/linux-prepare.sh b/.travis/linux-prepare.sh
index 89770c28d..eaff88cd2 100755
--- a/.travis/linux-prepare.sh
+++ b/.travis/linux-prepare.sh
@@ -8,7 +8,7 @@  set -ev
 # environments claim to have LLVM (llvm-config exists and works) but
 # linking against it fails.
 git clone git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git
-cd sparse && make HAVE_LLVM= install && cd ..
+cd sparse && make -j4 HAVE_LLVM= install && cd ..
 
 pip install --disable-pip-version-check --user six flake8 hacking
 pip install --user --upgrade docutils