add npmdocker

This commit is contained in:
Philipp Kunz 2016-07-28 19:38:26 +02:00
parent be659a2dbd
commit 37028a9b1f
4 changed files with 7 additions and 11 deletions

View File

@ -1,4 +1,4 @@
image: hosttoday/ht-docker-dbase
image: hosttoday/ht-docker-dbase:npmts
services:
- docker:dind

View File

@ -1,6 +0,0 @@
FROM hosttoday/ht-docker-node:npmts
RUN mkdir app-node
COPY ./ /app-node/
WORKDIR /app-node
ENV CI true
CMD ["npmts"]

View File

@ -2,5 +2,10 @@
"npmts":{
"mode":"default",
"coverageTreshold":10
},
"npmdocker":{
"baseImage":"hosttoday/ht-docker-node:npmts",
"command":"npmts",
"dockerSock":"true"
}
}

View File

@ -5,10 +5,7 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"test": "npmts --notest && npm run build && npm run startdocker && npm run cleanup",
"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"
"test": "npmdocker"
},
"repository": {
"type": "git",