summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-07-22 21:05:53 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-07-22 21:05:53 +0200
commit8386c1a210b51f9c3f9a3be11ed062f33d46dd9c (patch)
tree81fb51f5072a23179bb76b34c7a064cf7fabe6ef /scripts/build.sh
parent9177e02f1a9ff5347f20d1aa18fdf815fe8cbb7e (diff)
downloadweechat-8386c1a210b51f9c3f9a3be11ed062f33d46dd9c.zip
tests: run tests after build on Travis CI
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 2f00c3e2a..1a60f3452 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -52,15 +52,17 @@ run "cd $BUILDDIR"
if [ "$BUILDTOOL" = "cmake" ]; then
# build with CMake
- run "cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON"
+ run "cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
run "make VERBOSE=1"
run "sudo make install"
+ run "ctest -V"
fi
if [ "$BUILDTOOL" = "autotools" ]; then
# build with autotools
run "../autogen.sh"
- run "../configure --enable-man --enable-doc"
+ run "../configure --enable-man --enable-doc --enable-tests"
run "make"
run "sudo make install"
+ run "./tests/tests -v"
fi