Allow to test against different docker images
This commit is contained in:
parent
22aae632de
commit
2f74515323
16
.travis.yml
16
.travis.yml
@ -1,8 +1,12 @@
|
|||||||
jobs:
|
language: generic
|
||||||
include:
|
sudo: required
|
||||||
- sudo: required
|
env:
|
||||||
|
matrix:
|
||||||
|
- NODE_VERSION=10.15.1
|
||||||
|
DOCKER_IMAGE=carto/nodejs-xenial-pg101:latest
|
||||||
|
- NODE_VERSION=10.15.1
|
||||||
|
DOCKER_IMAGE=carto/nodejs-xenial-pg1121:latest
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
language: generic
|
before_install: docker pull ${DOCKER_IMAGE}
|
||||||
before_install: docker pull carto/nodejs-xenial-pg101:latest
|
script: npm run docker-test -- ${DOCKER_IMAGE} ${NODE_VERSION}
|
||||||
script: npm run docker-test -- 10.15.1
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker run -e "NODEJS_VERSION=${1}" -v `pwd`:/srv carto/nodejs-xenial-pg1121:latest bash test/run_tests_docker.sh && \
|
docker run -e "NODEJS_VERSION=${2}" -v `pwd`:/srv ${1} bash test/run_tests_docker.sh && \
|
||||||
docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v
|
docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v
|
||||||
|
Loading…
Reference in New Issue
Block a user