Skip to content

Commit cc07c9d

Browse files
author
Johannes J. Schmidt
committed
chore: use couchdb docker in ci
bc Mini P relies on CouchDB 2 as it depends on `_bulk_get`.
1 parent e8c38cb commit cc07c9d

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
language: node_js
2-
services:
3-
- couchdb
42
cache:
53
directories:
64
- ~/.npm
@@ -9,6 +7,13 @@ notifications:
97
node_js:
108
- '9'
119
- '8'
10+
services:
11+
- docker
12+
os:
13+
- linux
14+
before_script:
15+
- docker run -d -p 5984:5984 --name couchdb couchdb
16+
- while [ '200' != $(curl -s -o /dev/null -w %{http_code} http://127.0.0.1:5984) ]; do sleep 1; done
1217
after_success:
1318
- npm run travis-deploy-once "npm run semantic-release"
1419
branches:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ pull(
4040
The CouchDB replication protocol replicates documents via the changes feed. This replication, though, is based on `allDocs` by now.
4141

4242
## Dependencies
43-
Mini P requires Node v8.
43+
Mini P requires Node v8.
44+
HttpP adapter only works with CouchDB 2 (relies on `_bulk_get`).
4445
The only npm dependency is `request`, which is used for the HttpP adapter.
4546

4647
## Example

0 commit comments

Comments
 (0)