Control npm testing with environment variables

The NPM based tests can now skip the stopping of the docker-compose
cluster by defining the SKIP_SHUTDOWN environment variable.
This commit is contained in:
Markus Mäkelä
2017-07-17 16:10:53 +03:00
parent 9e688772cc
commit 64c5d6d610

View File

@ -90,6 +90,9 @@ npm test
rval=$? rval=$?
# Stop MariaDB servers # Stop MariaDB servers
docker-compose down -v if [ -z "$SKIP_SHUTDOWN" ]
then
docker-compose down -v
fi
exit $rval exit $rval