adding docker npm scripts

This commit is contained in:
Simon Martín 2018-04-27 17:37:46 +02:00
parent aa80cc3328
commit e437a0a642

View File

@ -54,7 +54,9 @@
"scripts": {
"test": "make test-all",
"test:unit": "mocha test/unit/**/*.js",
"test:unit:watch": "npm run test:unit -- -w"
"test:unit:watch": "npm run test:unit -- -w",
"docker-test": "docker run -v `pwd`:/srv cartoimages/engine-xenial-pg101 bash test/run_tests_docker.sh && docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v",
"docker-bash": "docker run -it -v `pwd`:/srv cartoimages/engine-xenial-pg101 bash"
},
"engines": {
"node": ">=0.8 <0.11",