summaryrefslogtreecommitdiff
path: root/util/travis
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-19 09:38:01 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-21 11:04:19 +0100
commitb3aeba684b4e27e9fdf2c07949750bb567e40d6b (patch)
tree73a97bc7d155174523cac1999274348c5e3d1b30 /util/travis
parent38e62805527b774e478617d9781bde72ce2bdcb9 (diff)
downloadminetest-b3aeba684b4e27e9fdf2c07949750bb567e40d6b.tar.gz
minetest-b3aeba684b4e27e9fdf2c07949750bb567e40d6b.tar.bz2
minetest-b3aeba684b4e27e9fdf2c07949750bb567e40d6b.zip
Unit tests must be done at integration process.
* Remove --enable-unittests and --disable-unittests and add --do-unittests function * --do-unittests function will exit 0 on success. * minetest and minetestserver binaries are launched with --do-unittests in travis build.
Diffstat (limited to 'util/travis')
-rwxr-xr-xutil/travis/script.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/travis/script.sh b/util/travis/script.sh
index c37816cee..437cf1ac5 100755
--- a/util/travis/script.sh
+++ b/util/travis/script.sh
@@ -3,8 +3,12 @@
if [ $WINDOWS = "no" ]; then
mkdir -p travisbuild
cd travisbuild
- cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 ..
+ cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DCMAKE_BUILD_TYPE=Debug ..
make -j2
+ echo "Running unit tests for minetest"
+ ../bin/minetest --do-unittests
+ echo "Running unit tests for minetestserver"
+ ../bin/minetestserver --do-unittests
else
[ $CC = "clang" ] && exit 1 # Not supposed to happen
# We need to have our build directory outside of the minetest directory because