test(circle): prevent bind conflicts (#33)

* test(circle): prevent bind conflicts

* test(circle): couchdb not always started

* test(circle): remove service line
This commit is contained in:
Geoff Cox 2017-10-03 14:45:11 -07:00 committed by GitHub
parent 8816c2f430
commit 7ab134feaf

View file

@ -13,7 +13,8 @@ dependencies:
- nvm use 8.1.4 && npm install -g npm
# Install CouchDB 2
- docker run -d --name couchdb --restart always -p 5984:5984 -e COUCHDB_USER='admin' -e COUCHDB_PASSWORD='admin' redgeoff/couchdb
# - docker run -d --name couchdb --restart always -p 5984:5984 -e COUCHDB_USER='admin' -e COUCHDB_PASSWORD='admin' redgeoff/couchdb
- docker run -d --name couchdb -p 5984:5984 -e COUCHDB_USER='admin' -e COUCHDB_PASSWORD='admin' redgeoff/couchdb
# Wait for DB to be ready
- sleep 15
# Create system DBs
@ -51,3 +52,7 @@ test:
# couchdb 1.6.1 docker image. We'll probably need to build a custom image for these tests.
# Test on CouchDB 1
# - nvm use 8.1.4 && COUCHDB_PORT=15984 npm run node-full-test
post:
# Stop CouchDB instance to prevent bind conflicts with subsequent test containers
- docker stop couchdb