Update docker test scripts to support Node.js 6 and 10 buildings

This commit is contained in:
Daniel García Aubert
2018-10-31 17:20:25 +01:00
parent e57e548c31
commit b7b5f031f3
3 changed files with 51 additions and 5 deletions
+20 -1
View File
@@ -1,4 +1,23 @@
#!/bin/bash
docker run -v `pwd`:/srv carto/${1:-nodejs10-xenial-pg101:postgis-2.4.4.5} bash run_tests_docker.sh && \
usage() {
echo "Usage: $0 [nodejs6|nodejs10]"
exit 1
}
echo "$0 $1"
NODEJS_VERSION=${1-nodejs10}
if [ "$NODEJS_VERSION" = "nodejs10" ];
then
DOCKER='nodejs10-xenial-pg101:postgis-2.4.4.5'
elif [ "$NODEJS_VERSION" = "nodejs6" ];
then
DOCKER='nodejs6-xenial-pg101:postgis-2.4.4.5'
else
usage
fi
docker run -v `pwd`:/srv carto/${DOCKER} bash run_tests_docker.sh ${NODEJS_VERSION} && \
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v