diff mbox series

[v3,3/6] travis: use parallel make for all builds

Message ID 1516327210-19457-4-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v3,1/6] travis: stop early when installation of cross-packages has failed | expand

Commit Message

Github ODP bot Jan. 19, 2018, 2 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Use parallel make to build everything, speeding up builds.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 402 (lumag:travis-upd)
 ** https://github.com/Linaro/odp/pull/402
 ** Patch: https://github.com/Linaro/odp/pull/402.patch
 ** Base sha: 5a4502fc6bc53e6503169da3028f456b64811a0b
 ** Merge commit sha: bec38d48297ebf78da7d67c986b91604e4597080
 **/
 .travis.yml | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index df942de59..cd571f4f3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -149,7 +149,7 @@  before_install:
             automake --add-missing --include-deps --copy
             autoconf
             ./configure --prefix=$HOME/cunit-install/$CROSS_ARCH --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test $CROSS || cat config.log
-            make
+            make -j $(nproc)
             sudo make install
             popd
           fi
@@ -214,7 +214,7 @@  install:
               sed -ri -e 's,(CONFIG_RTE_KNI_KMOD=).*,\1n,' .config
             fi
             popd
-            make install T=${TARGET} EXTRA_CFLAGS="-fPIC $DPDK_CFLAGS" CROSS="$DPDK_CROSS"
+            make install T=${TARGET} EXTRA_CFLAGS="-fPIC $DPDK_CFLAGS" CROSS="$DPDK_CROSS" -j $(nproc)
             rm -r ./doc ./${TARGET}/app ./${TARGET}/build
             popd
             EXTRA_CONF="$EXTRA_CONF --with-dpdk-path=`pwd`/dpdk/${TARGET}"
@@ -227,7 +227,7 @@  install:
               git -c advice.detachedHead=false clone -q --depth=1 --single-branch --branch=v11.2 https://github.com/luigirizzo/netmap.git
               pushd netmap/LINUX
               ./configure
-              make
+              make -j $(nproc)
               popd
             fi
             sudo insmod ./netmap/LINUX/netmap.ko
@@ -276,6 +276,7 @@  jobs:
                               CXXFLAGS="-O0 -coverage" LDFLAGS="--coverage"
                             --enable-debug=full
                             --enable-helper-linux
+                          - CCACHE_DISABLE=1 make -j $(nproc)
                           - sudo CCACHE_DISABLE=1 LD_LIBRARY_PATH="$HOME/cunit-install/$CROSS_ARCH/lib:$LD_LIBRARY_PATH" PATH=${PATH//:\.\/node_modules\/\.bin/} make check
                           - find . -type f -iname '*.[ch]' -not -path ".git/*" -execdir gcov {} \; ; bash <(curl -s https://codecov.io/bash) -X coveragepy
                 - stage: test
@@ -305,6 +306,7 @@  jobs:
                                 tar xpvf Release_1_8_13.tar.gz
                                 pushd doxygen-Release_1_8_13
                                 cmake -DCMAKE_INSTALL_PREFIX=$HOME/doxygen-install .
+                                make -j $(nproc)
                                 make install
                                 popd
                           fi
@@ -337,7 +339,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure --enable-helper-linux
-                          - make
+                          - make -j $(nproc)
                 - stage: "build only"
                   env: CONF=""
                   compiler: clang-3.8
@@ -345,7 +347,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure --enable-helper-linux
-                          - make
+                          - make -j $(nproc)
                 - stage: "build only"
                   env: CROSS_ARCH="i386"
                   compiler: gcc
@@ -353,7 +355,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure --enable-helper-linux $CROSS
-                          - make
+                          - make -j $(nproc)
                 - stage: "build only"
                   env: CROSS_ARCH="arm64"
                   compiler: gcc
@@ -361,7 +363,7 @@  jobs:
                   script:
                           - ./bootstrap
                           - ./configure --enable-helper-linux $CROSS
-                          - make
+                          - make -j $(nproc)
 
 after_failure:
   - cat config.log