add tests with in docker

This commit is contained in:
2016-06-16 04:18:10 +02:00
parent c58dad05cd
commit 49e7cc010b
7 changed files with 61 additions and 27 deletions

View File

@@ -4,7 +4,10 @@
"description": "easy communication with docker from node, TypeScript ready",
"main": "dist/index.js",
"scripts": {
"test": "npmts testindocker"
"test": "npmts --notest && npm run cleanup && npm run build && npm run startdocker",
"build": "docker build -t npmts-test-image .",
"startdocker":"docker run -v /var/run/docker.sock:/var/run/docker.sock --name npmts-test-container npmts-test-image",
"cleanup":"docker rm npmts-test-container && docker rmi npmts-test-image"
},
"repository": {
"type": "git",