forked from merlefre/ProxyHTTP
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
60 lines (53 loc) · 1.79 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
sudo: false
services: couchdb
language:
- node_js
- ruby
- python
node_js: stable
rvm: ruby-head
python: 2.7
cache:
directories:
- node_modules
- $HOME/.cache/pip/
addons:
hosts:
- auth.local
- cassandre.local
- couchdb.local
- xcouchdb.local
- xxcouchdb.local
- xxxcouchdb.local
- auth_fixed.local
- auth_ldap.local
- auth_http.local
install:
- rvm install 2.2.2
- npm install
- npm install -g jasmine-node
- npm install frisby
- cp conf/config.sample.json conf/config.json
- mkdir log/
- touch log/misc.log
- node app/proxy.js &
# Install CouchApp
- pip install --user couchapp
# Install Capybara
- gem install capybara-webkit rspec
# Install Cassandre
- curl -X PUT -d '"false"' localhost:5984/_config/httpd/secure_rewrites
- curl -X PUT localhost:5984/cassandre
- wget https://github.com/Hypertopic/Cassandre/archive/master.zip
- unzip master.zip
- couchapp push Cassandre-master http://localhost:5984/cassandre
# Set up test fixture
- curl -X PUT -d '"{couch_httpd_auth, cookie_authentication_handler}, {couch_httpd_auth, proxy_authentication_handler}, {couch_httpd_auth, default_authentication_handler}"' localhost:5984/_config/httpd/authentication_handlers
- curl -X PUT -d'"true"' localhost:5984/_config/couch_httpd_auth/proxy_use_secret
- curl -X PUT -d'"secretkeyforcouchdbauthtoken"' localhost:5984/_config/couch_httpd_auth/secret
- curl -X PUT localhost:5984/cassandre/iamlate -d '{"corpus":"Wonderland", "name":"I am late"}'
- curl -X PUT localhost:5984/_users/org.couchdb.user:hatter -H 'Accept:application/json' -H 'Content-Type:application/json' -d '{"name":"hatter", "password":"teaparty", "roles":[], "type":"user"}'
- curl -X PUT localhost:5984/_config/admins/carroll -d '"curiouser"'
script:
- jasmine-node --verbose spec/api/
- xvfb-run rspec spec/features/*