Fail faster in builds
If `make` fails, there's no point in doing anything else.
This commit is contained in:
@ -12,7 +12,7 @@ mkdir _build
|
|||||||
cd _build
|
cd _build
|
||||||
cmake .. $cmake_flags
|
cmake .. $cmake_flags
|
||||||
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
|
export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier
|
||||||
make
|
make || exit 1
|
||||||
|
|
||||||
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
@ -10,7 +10,7 @@ cd ./MaxScale
|
|||||||
mkdir _build
|
mkdir _build
|
||||||
cd _build
|
cd _build
|
||||||
cmake .. $cmake_flags
|
cmake .. $cmake_flags
|
||||||
make
|
make || exit 1
|
||||||
|
|
||||||
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
if [[ "$cmake_flags" =~ "BUILD_TESTS" ]]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user