-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
25 lines (20 loc) · 861 Bytes
/
.travis.yml
File metadata and controls
25 lines (20 loc) · 861 Bytes
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
language: python
php:
- 2.7
install: "pip install -r requirements.txt"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get install python-software-properties -y
- sudo add-apt-repository ppa:couchdb/stable -y
- sudo apt-get update -y
- sudo apt-get remove couchdb couchdb-bin couchdb-common -yf
- sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install couchdb
- sudo service couchdb start
before_script:
- curl -X PUT localhost:5984/_config/httpd/enable_cors -d '"true"'
- curl -X PUT localhost:5984/_config/cors/origins -d '"*"'
- curl -X PUT localhost:5984/_config/cors/methods -d '"GET, POST, PUT, DELETE"'
- curl -X PUT localhost:5984/njb_tests
script: python run-tests.py