diff options
author | azul <azul@riseup.net> | 2016-08-15 09:26:39 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2016-08-15 09:26:39 +0000 |
commit | 1457fcdae08a1cd7e1e7b36668f826547d2c7cf6 (patch) | |
tree | 59b563bc3f10ed7d2438f6284f96478c592d3ddf /test/config/travis | |
parent | a1d62a3a1492ca21e1e1d2344fac88bb4d93f324 (diff) | |
parent | 75c037e5d6d8b8f2b98477bdd0359f5687bd7517 (diff) |
Merge branch 'test/gitlab-ci' into 'develop'
[ci] get gitlab to run tests
See merge request !2
Diffstat (limited to 'test/config/travis')
-rw-r--r-- | test/config/travis/couchdb.admin.yml | 5 | ||||
-rw-r--r-- | test/config/travis/couchdb.yml | 4 | ||||
-rw-r--r-- | test/config/travis/ruby-version | 1 | ||||
-rwxr-xr-x | test/config/travis/setup_couch.sh | 17 |
4 files changed, 27 insertions, 0 deletions
diff --git a/test/config/travis/couchdb.admin.yml b/test/config/travis/couchdb.admin.yml new file mode 100644 index 0000000..a7677f9 --- /dev/null +++ b/test/config/travis/couchdb.admin.yml @@ -0,0 +1,5 @@ +test: + auto_update_design_doc: false + username: "anna" + password: "secret" + diff --git a/test/config/travis/couchdb.yml b/test/config/travis/couchdb.yml new file mode 100644 index 0000000..a57b888 --- /dev/null +++ b/test/config/travis/couchdb.yml @@ -0,0 +1,4 @@ +test: + auto_update_design_doc: false + username: "me" + password: "pwd" diff --git a/test/config/travis/ruby-version b/test/config/travis/ruby-version new file mode 100644 index 0000000..68b3a4c --- /dev/null +++ b/test/config/travis/ruby-version @@ -0,0 +1 @@ +1.9.3-p551 diff --git a/test/config/travis/setup_couch.sh b/test/config/travis/setup_couch.sh new file mode 100755 index 0000000..0502c12 --- /dev/null +++ b/test/config/travis/setup_couch.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +HOST="http://localhost:5984" +echo "couch version :" +curl -X GET $HOST +echo "creating user :" +curl -HContent-Type:application/json -XPUT $HOST/_users/org.couchdb.user:me --data-binary '{"_id": "org.couchdb.user:me","name": "me","roles": [],"type": "user","password": "pwd"}' +echo "creating databases :" +curl -X PUT $HOST/sessions +curl -X PUT $HOST/users +curl -X PUT $HOST/tickets +echo "restricting database access :" +curl -X PUT $HOST/sessions/_security -Hcontent-type:application/json --data-binary '{"admins":{"names":[],"roles":[]},"members":{"names":["me"],"roles":[]}}' +curl -X PUT $HOST/users/_security -Hcontent-type:application/json --data-binary '{"admins":{"names":[],"roles":[]},"members":{"names":["me"],"roles":[]}}' +curl -X PUT $HOST/tickets/_security -Hcontent-type:application/json --data-binary '{"admins":{"names":[],"roles":[]},"members":{"names":["me"],"roles":[]}}' +echo "adding admin :" +curl -X PUT $HOST/_config/admins/anna -d '"secret"' |