From 5552feafca3cd3d39a20074dbd0b85f0220f0140 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Tue, 25 Oct 2016 18:49:42 +0200 Subject: CI: API test defaults to failure, unless explicitly succeeded. This fixes problems with the CI build succeeding when the API description has a syntax error in it and the APIDump plugin won't even load. --- CIbuild.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CIbuild.sh') diff --git a/CIbuild.sh b/CIbuild.sh index d652f1d36..93c238b4c 100755 --- a/CIbuild.sh +++ b/CIbuild.sh @@ -19,6 +19,7 @@ make -j 2 test ARGS="-V"; echo "Testing..." cd Server/; +touch apiCheckFailed.flag if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then $CUBERITE_PATH << EOF load APIDump @@ -36,4 +37,8 @@ EOF cat ./DuplicateDocs.txt exit 1 fi + if [ -f ./apiCheckFailed.flag ]; then + echo "ERROR: API check has failed with an unknown error" + exit 1 + fi fi -- cgit v1.2.3