-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
98 lines (89 loc) · 2.44 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
os:
- linux
language: go
go:
- 1.9
sudo: required
services:
- docker
- elasticsearch
cache:
directories:
- $GOPATH/pkg
- $GOPATH/src/github.com/bmeg/arachne/.git/modules
- $GOPATH/src/github.com/bmeg/arachne/vendor
git:
submodules: false
install:
- make depends
- make
jobs:
include:
- stage: all
script: make lint
env:
- n=lint
- script:
- make test
env:
- n=tests
- script:
- arachne server --rpc 18202 --port 18201 &
- sleep 5
- make test-conformance
- go test ./test -db badger
env:
- n=badger
- script:
- arachne server --rpc 18202 --port 18201 --bolt arachne.db &
- sleep 5
- make test-conformance
- go test ./test -db bolt
env:
- n=boltdb
- script:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install libsnappy-dev zlib1g-dev libbz2-dev -qq
- wget https://launchpad.net/ubuntu/+archive/primary/+files/libgflags2_2.0-1.1ubuntu1_amd64.deb
- sudo dpkg -i libgflags2_2.0-1.1ubuntu1_amd64.deb
- wget https://launchpad.net/ubuntu/+archive/primary/+files/libgflags-dev_2.0-1.1ubuntu1_amd64.deb
- sudo dpkg -i libgflags-dev_2.0-1.1ubuntu1_amd64.deb
- git clone https://github.com/facebook/rocksdb.git /tmp/rocksdb
- pushd /tmp/rocksdb
- sudo make static_lib
- sudo cp --preserve=links ./librocksdb.* /usr/lib/
- sudo cp -r ./include/rocksdb/ /usr/include/
- popd
- go get github.com/tecbot/gorocksdb
- make with-rocksdb
- arachne server --rpc 18202 --port 18201 --rocks arachne.db &
- sleep 5
- make test-conformance
- go test ./test -tags rocksdb -db rocks
env:
- n=rocksdb
- script:
- arachne server --rpc 18202 --port 18201 --level arachne.db &
- sleep 5
- make test-conformance
- go test ./test -db level
env:
- n=leveldb
- script:
- make start-mongo
- sleep 10
- arachne server --rpc 18202 --port 18201 --mongo localhost:27000 &
- sleep 5
- make test-conformance
env:
- n=mongodb
- script:
- sleep 10
- arachne server --rpc 18202 --port 18201 --elastic http://localhost:9200 &
- sleep 5
- make test-conformance
env:
- n=elasticsearch
notifications:
email: false