add npmdocker
This commit is contained in:
parent
be659a2dbd
commit
37028a9b1f
@ -1,4 +1,4 @@
|
|||||||
image: hosttoday/ht-docker-dbase
|
image: hosttoday/ht-docker-dbase:npmts
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
||||||
|
@ -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"]
|
|
@ -2,5 +2,10 @@
|
|||||||
"npmts":{
|
"npmts":{
|
||||||
"mode":"default",
|
"mode":"default",
|
||||||
"coverageTreshold":10
|
"coverageTreshold":10
|
||||||
|
},
|
||||||
|
"npmdocker":{
|
||||||
|
"baseImage":"hosttoday/ht-docker-node:npmts",
|
||||||
|
"command":"npmts",
|
||||||
|
"dockerSock":"true"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,10 +5,7 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npmts --notest && npm run build && npm run startdocker && npm run cleanup",
|
"test": "npmdocker"
|
||||||
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user