-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
executable file
·43 lines (43 loc) · 1.01 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
sudo: false
language: go
go:
- 1.5
- 1.6
services:
- couchdb
addons:
apt:
packages:
- python3
before_script:
# SET COUCHDB ADMIN PASSWORD
- curl -X PUT http://127.0.0.1:5984/_config/admins/adminuser -d '"password"'
- sleep 2s
- curl -X PUT http://127.0.0.1:5984/_config/httpd/socket_options --user adminuser:password -d '"[{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]"'
# INSTALL ETCD
- curl -L https://github.com/coreos/etcd/releases/download/v2.2.5/etcd-v2.2.5-linux-amd64.tar.gz -o etcd-v2.2.5-linux-amd64.tar.gz
- tar xzvf etcd-v2.2.5-linux-amd64.tar.gz
- cd etcd-v2.2.5-linux-amd64
- ./etcd&
- sleep 2s
- cd ..
script:
- sleep 5s
- cd scripts
- ./setup.py localhost 5984 --user=adminuser --password=password --skip_master
- sleep 12s
- cd ..
- cd users
- go test -v -p 1 ./...
- sleep 2s
- cd ../wikis
- go test -v -p 1 ./...
- sleep 2s
- cd ../notifications
- go test -v -p 1 ./...
- sleep 2s
- cd ../frontend
- go test -v -p 1 ./...
- sleep 2s
- cd ../auth
- go test -v -p 1 ./...