From: khizmax Date: Thu, 5 Mar 2015 11:21:25 +0000 (+0300) Subject: Fix build script X-Git-Tag: v2.1.0~305^2~34 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ccba9072eaa9e32854e006b85e06df23344c6875;p=libcds.git Fix build script --- 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