From e437a0a642261cf17b641e0dbb85d8b0e947be32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Fri, 27 Apr 2018 17:37:46 +0200 Subject: [PATCH] adding docker npm scripts --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d2758511..3e74052b 100644 --- a/package.json +++ b/package.json @@ -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",