summaryrefslogtreecommitdiffstats
path: root/CIbuild.sh
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-03-18 21:36:01 +0100
committerLukas Pioch <lukas@zgow.de>2017-03-21 10:56:14 +0100
commit3c3fcd60ece5b5b8901b8a229968002d53449ead (patch)
tree61d2692dffd6ecb1ecf358977295d8af75c2738a /CIbuild.sh
parentAdded blocks that can be washed away by water (#3637) (diff)
downloadcuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.tar
cuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.tar.gz
cuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.tar.bz2
cuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.tar.lz
cuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.tar.xz
cuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.tar.zst
cuberite-3c3fcd60ece5b5b8901b8a229968002d53449ead.zip
Diffstat (limited to 'CIbuild.sh')
-rwxr-xr-xCIbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/CIbuild.sh b/CIbuild.sh
index 93c238b4c..2bfe2036d 100755
--- a/CIbuild.sh
+++ b/CIbuild.sh
@@ -17,11 +17,14 @@ echo "Building..."
make -j 2;
make -j 2 test ARGS="-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..."
cd Server/;
touch apiCheckFailed.flag
if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
- $CUBERITE_PATH << EOF
+ gdb -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