summaryrefslogtreecommitdiffstats
path: root/CIbuild.sh
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-10-21 15:25:21 +0200
committerMattes D <github@xoft.cz>2017-10-21 19:31:45 +0200
commit4dce6a59aac3dbc7eee4ee3bff482f0de831d497 (patch)
tree2e169b98f231334784f5198ad0e04ef1f8ae44dc /CIbuild.sh
parentImplement horse inventory (#4053) (diff)
downloadcuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.tar
cuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.tar.gz
cuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.tar.bz2
cuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.tar.lz
cuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.tar.xz
cuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.tar.zst
cuberite-4dce6a59aac3dbc7eee4ee3bff482f0de831d497.zip
Diffstat (limited to 'CIbuild.sh')
-rwxr-xr-xCIbuild.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/CIbuild.sh b/CIbuild.sh
index 2bfe2036d..f152a15e1 100755
--- a/CIbuild.sh
+++ b/CIbuild.sh
@@ -14,17 +14,25 @@ fi
cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1;
echo "Building..."
-make -j 2;
-make -j 2 test ARGS="-V";
+cmake --build . -- -j 2;
+ctest -j 2 -V;
# Create .gdbinit in home directory. Switches off the confirmation on quit
echo -e "define hook-quit\n\tset confirm off\nend\n" > ~/.gdbinit
echo "Testing..."
+
+# OSX builds need sudo because gdb isn't signed
+if [ "$TRAVIS_OS_NAME" = osx ]; then
+ GDB_COMMAND="sudo gdb"
+else
+ GDB_COMMAND="gdb"
+fi
+
cd Server/;
touch apiCheckFailed.flag
if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
- gdb -return-child-result -ex run -ex "bt" -ex "info threads" -ex "thread apply all bt" -ex "quit" --args $CUBERITE_PATH << EOF
+ ${GDB_COMMAND} -return-child-result -ex run -ex "bt" -ex "info threads" -ex "thread apply all bt" -ex "quit" --args $CUBERITE_PATH << EOF
load APIDump
apicheck
restart