Fail faster in NPM tests
The test script now stops if the configuration or build steps fail.
This commit is contained in:
parent
446116a8bb
commit
055043b5b8
@ -38,7 +38,7 @@ docker-compose up -d || exit 1
|
||||
|
||||
# Install dependencies
|
||||
cd $testdir
|
||||
npm install
|
||||
npm install || exit 1
|
||||
|
||||
# Configure and install MaxScale
|
||||
cd $maxscaledir
|
||||
@ -52,9 +52,9 @@ cmake $srcdir -DCMAKE_BUILD_TYPE=Debug \
|
||||
-DBUILD_CDC=Y \
|
||||
-DTARGET_COMPONENT=all \
|
||||
-DDEFAULT_MODULE_CONFIGDIR=$maxscaledir \
|
||||
-DDEFAULT_ADMIN_USER=`whoami`
|
||||
-DDEFAULT_ADMIN_USER=`whoami` || exit 1
|
||||
|
||||
make install
|
||||
make install || exit 1
|
||||
|
||||
# Create required directories (we could run the postinst script but it's a bit too invasive)
|
||||
mkdir -p $maxscaledir/lib64/maxscale
|
||||
|
Loading…
x
Reference in New Issue
Block a user