diff options
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-x | scripts/build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 1a60f3452..b1514e8f2 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -25,6 +25,8 @@ # This script is used to build WeeChat in Travis CI environment. # +set -x + run () { echo "Running \"$@\"..." @@ -53,7 +55,7 @@ run "cd $BUILDDIR" if [ "$BUILDTOOL" = "cmake" ]; then # build with CMake run "cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON" - run "make VERBOSE=1" + run "make VERBOSE=1 -j$(nproc)" run "sudo make install" run "ctest -V" fi @@ -62,7 +64,7 @@ if [ "$BUILDTOOL" = "autotools" ]; then # build with autotools run "../autogen.sh" run "../configure --enable-man --enable-doc --enable-tests" - run "make" + run "make -j$(nproc)" run "sudo make install" run "./tests/tests -v" fi |