-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
32 lines (26 loc) · 994 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
services: docker
addons:
hosts:
- agorae.local
language:
- ruby
rvm:
- 2.7
cache:
- bundler
install:
# Install CouchDB
- docker run -d -p 5984:5984 -v "$(pwd)"/.couchdb.ini:/opt/couchdb/etc/local.d/docker.ini --name couchdb1 couchdb:2
# Install Argos
- wget https://github.com/Hypertopic/Argos/archive/v3.zip
- unzip v3.zip
- docker run --rm -v "$(pwd)"/Argos-3/app:/app --link couchdb1:couchdb -e URI=http://couchdb:5984/argos benel/couchapp push .
# Install Agorae
- cp couchdb/agorae.sample.json couchdb/agorae.json
- docker run --rm -v "$(pwd)"/couchdb:/app --link couchdb1:couchdb -e URI=http://couchdb:5984/argos benel/couchapp push .
# Set up a user
- curl -X PUT localhost:5984/_users
- curl -X PUT localhost:5984/_users/org.couchdb.user:alice -H 'Accept:application/json' -H 'Content-Type:application/json' -d '{"name":"alice", "password":"lapinblanc", "roles":[], "type":"user"}'
# Install testing environment
- gem install poltergeist rspec
script: rspec spec/features/*