Don't use bash script to run ci test

This commit is contained in:
Daniel García Aubert 2019-11-28 18:28:01 +01:00
parent ab66ad83fd
commit d9c05a9333
2 changed files with 3 additions and 3 deletions

View File

@ -9,4 +9,4 @@ env:
services: services:
- docker - docker
before_install: docker pull ${DOCKER_IMAGE} before_install: docker pull ${DOCKER_IMAGE}
script: npm run docker-test -- ${DOCKER_IMAGE} ${NODE_VERSION} script: npm run ci:test

View File

@ -78,8 +78,8 @@
"posttest": "npm run test:teardown", "posttest": "npm run test:teardown",
"test:teardown": "NODE_ENV=test node test teardown", "test:teardown": "NODE_ENV=test node test teardown",
"update-internal-deps": "rm -rf node_modules && npm install", "update-internal-deps": "rm -rf node_modules && npm install",
"docker-test": "./docker-test.sh", "ci:test": "docker run -e \"NODEJS_VERSION=$NODE_VERSION\" -v `pwd`:/srv $DOCKER_IMAGE bash run_tests_docker.sh && docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v",
"docker-bash": "./docker-bash.sh" "docker:bash": "docker run -it -v `pwd`:/srv $DOCKER_IMAGE bash"
}, },
"engines": { "engines": {
"node": "^10.15.1", "node": "^10.15.1",