diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index 445be1a..232467c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,15 +2,9 @@ services: - couchdb notifications: email: false -before_script: - - "mv config/couchdb.yml.admin config/couchdb.yml" +before_script: + - "test/setup_couch.sh" + - "mv test/config/couchdb.yml.admin config/couchdb.yml" - "bundle exec rake couchrest:migrate_with_proxies" - "bundle exec rake couchrest:migrate_with_proxies" # looks like this needs to run twice - - 'HOST="http://localhost:5984"' - - "curl -HContent-Type:application/json -vXPUT $HOST/_users/org.couchdb.user:me --data-binary '{\"_id\": \"org.couchdb.user:me\",\"name\": \"me\",\"roles\": [],\"type\": \"user\",\"password\": \"pwd\"}'" - - "curl -X PUT $HOST/sessions" - - "curl -vX PUT $HOST/sessions/_security -Hcontent-type:application/json --data-binary '{\"admins\":{\"names\":[],\"roles\":[]},\"members\":{\"names\":[\"me\"],\"roles\":[]}}'" - - "curl -vX PUT $HOST/users/_security -Hcontent-type:application/json --data-binary '{\"admins\":{\"names\":[],\"roles\":[]},\"members\":{\"names\":[\"me\"],\"roles\":[]}}'" - - "curl -vX PUT $HOST/tickets/_security -Hcontent-type:application/json --data-binary '{\"admins\":{\"names\":[],\"roles\":[]},\"members\":{\"names\":[\"me\"],\"roles\":[]}}'" - - "curl -X PUT $HOST/_config/admins/anna -d '\"secret\"'" - - "mv config/couchdb.yml.user config/couchdb.yml" + - "mv test/config/couchdb.yml.user config/couchdb.yml" |