Allow to test against different docker images
This commit is contained in:
parent
22aae632de
commit
2f74515323
18
.travis.yml
18
.travis.yml
@ -1,8 +1,12 @@
|
||||
jobs:
|
||||
include:
|
||||
- sudo: required
|
||||
services:
|
||||
language: generic
|
||||
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:
|
||||
- docker
|
||||
language: generic
|
||||
before_install: docker pull carto/nodejs-xenial-pg101:latest
|
||||
script: npm run docker-test -- 10.15.1
|
||||
before_install: docker pull ${DOCKER_IMAGE}
|
||||
script: npm run docker-test -- ${DOCKER_IMAGE} ${NODE_VERSION}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in New Issue
Block a user