mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-24 13:25:21 +02:00
Commits not directly related to network changes were cherry-picked on a best-effort basis, as some cause difficult merge conflicts. Commits skipped over:0d1eedccccaa474e450182482ecd9db214cde5b42066655aae7e088fdfe340bf1d7b5f1b2f64473e7e56637ed064ff966bae51057a56f5009149a073cf4045ff0fe357577cb249f84b76bcb019221c307880ff74b6146f77fdb7a704c04f00Commits with conflicts:038d3a31dfe9eda2b0d0708337dfc2~~ modified client.cpp manually; shadow changes to packethandlers/client.cpp36e8ba9ce2~~ modified main.cpp manually; add ALLOW_ZWRITE_ON_TRANSPARENT set3b6480c5b0~~ modified server.cpp manually; change wrapDegrees -> modulo360f5a5854ea9dc09d026f053c91ad8fc2
29 lines
1.2 KiB
Bash
Executable File
29 lines
1.2 KiB
Bash
Executable File
#!/bin/bash -e
|
|
|
|
if [ $WINDOWS = "no" ]; then
|
|
mkdir -p travisbuild
|
|
cd travisbuild
|
|
cmake -DENABLE_GETTEXT=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DCMAKE_BUILD_TYPE=Debug ..
|
|
make -j2
|
|
echo "Running unit tests for minetest"
|
|
../bin/minetest --run-unittests
|
|
echo "Running unit tests for minetestserver"
|
|
../bin/minetestserver --run-unittests
|
|
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
|