Fail faster in NPM tests

The test script now stops if the configuration or build steps fail.
This commit is contained in:
Markus Mäkelä 2018-08-06 17:32:54 +03:00
parent 446116a8bb
commit 055043b5b8
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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