From ccba9072eaa9e32854e006b85e06df23344c6875 Mon Sep 17 00:00:00 2001 From: khizmax Date: Thu, 5 Mar 2015 14:21:25 +0300 Subject: [PATCH] Fix build script --- .travis.yml | 2 +- build/build.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1e72fb3a..76345bb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ install: before_script: cd ./build -script: ./build.sh -b 64 -j 4 -x ${CXX} -z '-std=c++0x -Wall -Wextra -pedantic' -t test_hdr +script: ./build.sh -b 64 -j 4 -x ${CXX} -z '-Wall -Wextra -pedantic' -t test_hdr #after_success: diff --git a/build/build.sh b/build/build.sh index 621ffd5e..95ef503e 100755 --- a/build/build.sh +++ b/build/build.sh @@ -536,7 +536,7 @@ $MAKE -f Makefile \ OBJ_PATH=$OBJ_PATH/debug \ debug -if test $? -gt 0; then +if [ $? -ne 0 ]; then exit $? fi @@ -562,7 +562,7 @@ $MAKE -f Makefile \ OBJ_PATH=$OBJ_PATH/release \ release -if test $? -gt 0; then +if [ $? -ne 0 ]; then exit $? fi @@ -584,7 +584,7 @@ if test $MAKE_DEBUG_TEST = '0'; then OBJ_PATH=$OBJ_PATH/test \ $target - if test $? -gt 0; then + if [ $? -ne 0 ]; then exit $? fi fi @@ -606,7 +606,7 @@ if test $MAKE_DEBUG_TEST = '1'; then OBJ_PATH=$OBJ_PATH/test-debug \ $target - if test $? -gt 0; then + if [ $? -ne 0 ]; then exit $? fi fi -- 2.34.1