Ejecutar test via npm test command
This commit is contained in:
parent
99155e09fb
commit
116714c370
|
@ -1,6 +1,8 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
auth:
|
auth:
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=${NODE_ENV}
|
||||||
container_name: "${BRANCH_NAME}-auth"
|
container_name: "${BRANCH_NAME}-auth"
|
||||||
image: "auth:${TAG}"
|
image: "auth:${TAG}"
|
||||||
build:
|
build:
|
||||||
|
@ -11,55 +13,66 @@ services:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
|
|
||||||
salix:
|
salix:
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=${NODE_ENV}
|
||||||
container_name: "${BRANCH_NAME}-salix"
|
container_name: "${BRANCH_NAME}-salix"
|
||||||
image: "salix:${TAG}"
|
image: "salix:${TAG}"
|
||||||
build:
|
build:
|
||||||
context: ./services/salix
|
context: ./services/salix
|
||||||
expose:
|
expose:
|
||||||
- "3001"
|
- "3001"
|
||||||
ports:
|
ports:
|
||||||
- "3001:3001"
|
- "3001:3001"
|
||||||
|
|
||||||
client:
|
client:
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=${NODE_ENV}
|
||||||
container_name: "${BRANCH_NAME}-client"
|
container_name: "${BRANCH_NAME}-client"
|
||||||
image: "client:${TAG}"
|
image: "client:${TAG}"
|
||||||
build:
|
build:
|
||||||
context: ./services/client
|
context: ./services/client
|
||||||
expose:
|
expose:
|
||||||
- "3002"
|
- "3002"
|
||||||
ports:
|
ports:
|
||||||
- "3002:3002"
|
- "3002:3002"
|
||||||
|
|
||||||
mailer:
|
mailer:
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=${NODE_ENV}
|
||||||
container_name: "${BRANCH_NAME}-mailer"
|
container_name: "${BRANCH_NAME}-mailer"
|
||||||
image: "mailer:${TAG}"
|
image: "mailer:${TAG}"
|
||||||
build:
|
build:
|
||||||
context: ./services/mailer
|
context: ./services/mailer
|
||||||
expose:
|
expose:
|
||||||
- "3003"
|
- "3003"
|
||||||
ports:
|
ports:
|
||||||
- "3003:3003"
|
- "3003:3003"
|
||||||
|
|
||||||
production:
|
production:
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=${NODE_ENV}
|
||||||
container_name: "${BRANCH_NAME}-production"
|
container_name: "${BRANCH_NAME}-production"
|
||||||
image: "production:${TAG}"
|
image: "production:${TAG}"
|
||||||
build:
|
build:
|
||||||
context: ./services/production
|
context: ./services/production
|
||||||
expose:
|
expose:
|
||||||
- "3004"
|
- "3004"
|
||||||
ports:
|
ports:
|
||||||
- "3004:3004"
|
- "3004:3004"
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
container_name: "${BRANCH_NAME}-nginx"
|
container_name: "${BRANCH_NAME}-nginx"
|
||||||
image: "nginx:${TAG}"
|
image: "nginx:${TAG}"
|
||||||
build:
|
privileged: true
|
||||||
|
build:
|
||||||
context: ./services/nginx
|
context: ./services/nginx
|
||||||
ports:
|
expose:
|
||||||
- "80:8080"
|
- "80"
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
links:
|
links:
|
||||||
- "auth:"${BRANCH_NAME}-auth"
|
- "auth:${BRANCH_NAME}-auth"
|
||||||
- "salix:"${BRANCH_NAME}-salix"
|
- "salix:${BRANCH_NAME}-salix"
|
||||||
- "client:"${BRANCH_NAME}-client"
|
- "client:${BRANCH_NAME}-client"
|
||||||
- "mailer:"${BRANCH_NAME}-mailer"
|
- "mailer:${BRANCH_NAME}-mailer"
|
||||||
- "production:"${BRANCH_NAME}-production"
|
- "production:${BRANCH_NAME}-production"
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
"nightmare": "^2.10.0",
|
"nightmare": "^2.10.0",
|
||||||
"node-sass": "^3.11.0",
|
"node-sass": "^3.11.0",
|
||||||
"nodemon": "^1.12.0",
|
"nodemon": "^1.12.0",
|
||||||
"pre-commit": "^1.1.3",
|
|
||||||
"raw-loader": "*",
|
"raw-loader": "*",
|
||||||
"sass-loader": "^4.0.2",
|
"sass-loader": "^4.0.2",
|
||||||
"style-loader": "^0.13.1",
|
"style-loader": "^0.13.1",
|
||||||
|
@ -65,6 +64,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --progress --colors",
|
"build": "webpack --progress --colors",
|
||||||
"dev": "webpack-dev-server --progress --colors",
|
"dev": "webpack-dev-server --progress --colors",
|
||||||
"lint": "eslint ./ --cache --ignore-pattern .gitignore"
|
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
||||||
|
"test": "node services_tests.js",
|
||||||
|
"testWatcher": "nodemon -q services_tests.js -w services"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
nodemon -q services_tests.js -w services
|
|
Loading…
Reference in New Issue