aboutsummaryrefslogtreecommitdiff
path: root/util/travis/script.sh
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2014-12-05 15:54:19 +0100
committersfan5 <sfan5@live.de>2014-12-06 19:56:31 +0100
commit04a1a446cf845a0db80d39fd0e42771aa07e4492 (patch)
treeba7e67cd87e10d427ed99eb7a6019309b9c75825 /util/travis/script.sh
parent5062b99cb0d252d9e377ff4560f7ecc9e66fd558 (diff)
downloadminetest-04a1a446cf845a0db80d39fd0e42771aa07e4492.tar.gz
minetest-04a1a446cf845a0db80d39fd0e42771aa07e4492.tar.bz2
minetest-04a1a446cf845a0db80d39fd0e42771aa07e4492.zip
Build for win32 & win64 on Travis too
Diffstat (limited to 'util/travis/script.sh')
-rwxr-xr-xutil/travis/script.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/util/travis/script.sh b/util/travis/script.sh
new file mode 100755
index 000000000..a8e2634e9
--- /dev/null
+++ b/util/travis/script.sh
@@ -0,0 +1,24 @@
+#!/bin/bash -e
+
+if [ $WINDOWS = "no" ]; then
+ mkdir -p travisbuild
+ cd travisbuild
+ cmake -DENABLE_GETTEXT=1 ..
+ make -j2
+else
+ [ $CC = "clang" ] && exit 1 # Not supposed to happen
+ # We need to have our build directory outside of the minetest directory because
+ # CMake will otherwise get very very confused with symlinks and complain that
+ # something is not a subdirectory of something even if it actually is.
+ # e.g.:
+ # /home/travis/minetest/minetest/travisbuild/minetest
+ # \/ \/ \/
+ # /home/travis/minetest/minetest/travisbuild/minetest/travisbuild/minetest
+ # \/ \/ \/
+ # /home/travis/minetest/minetest/travisbuild/minetest/travisbuild/minetest/travisbuild/minetest
+ # You get the idea.
+ OLDDIR=`pwd`
+ cd ..
+ [ $WINDOWS = "32" ] && EXISTING_MINETEST_DIR=$OLDDIR NO_MINETEST_GAME=1 $OLDDIR/util/buildbot/buildwin32.sh travisbuild && exit 0
+ [ $WINDOWS = "64" ] && EXISTING_MINETEST_DIR=$OLDDIR NO_MINETEST_GAME=1 $OLDDIR/util/buildbot/buildwin64.sh travisbuild && exit 0
+fi