forked from cloudant/python-cloudant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (27 loc) · 914 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
sudo: required
language: python
python:
- "2.7"
- "3.6"
env:
- ADMIN_PARTY=true COUCHDB_VERSION=2.1.1
- ADMIN_PARTY=false COUCHDB_VERSION=2.1.1
- ADMIN_PARTY=true COUCHDB_VERSION=1.7.1
- ADMIN_PARTY=false COUCHDB_VERSION=1.7.1
services:
- docker
before_install:
- docker pull couchdb:$COUCHDB_VERSION
- docker run -d -p 5984:5984 couchdb:$COUCHDB_VERSION
install: "pip install -r requirements.txt && pip install -r test-requirements.txt"
before_script:
# Make sure CouchDB is up
- while [ $? -ne 0 ]; do sleep 1 && curl -v http://localhost:5984; done
- curl -X PUT http://localhost:5984/_users
- curl -X PUT http://localhost:5984/_replicator
# command to run tests
script:
- pylint ./src/cloudant
- nosetests -A 'not db or ((db is "couch" or "couch" in db) and (not couchapi or couchapi <='${COUCHDB_VERSION:0:1}'))' -w ./tests/unit
notifications:
email: false