@@ -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