summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorMikaela Suomalainen <mikaela.suomalainen@outlook.com>2014-08-02 18:44:01 +0300
committerMikaela Suomalainen <mikaela.suomalainen@outlook.com>2014-08-02 18:52:10 +0300
commitb1b5a3eac90c079f4f9ebb909654d4c9c89fd915 (patch)
treeaa5d8e8aed23b35f5ec110c1e88477339d547d88 /scripts/build.sh
parent21538edc9b822990aa62734664be051dea1ae687 (diff)
downloadweechat-b1b5a3eac90c079f4f9ebb909654d4c9c89fd915.zip
tests: make build.sh show executed commands & ...
...try to speed up make by using multiple jobs if there is more than one CPU available Travis CI should now show the commands that build.sh executes in the log. I mean commands, not only their output.
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh6
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