From 7ab134feaf262ad03a5ffa89dff40c25ed3c1415 Mon Sep 17 00:00:00 2001 From: Geoff Cox Date: Tue, 3 Oct 2017 14:45:11 -0700 Subject: [PATCH] test(circle): prevent bind conflicts (#33) * test(circle): prevent bind conflicts * test(circle): couchdb not always started * test(circle): remove service line --- circle.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index a04284a..da1d72a 100644 --- a/circle.yml +++ b/circle.yml @@ -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