forked from aerospike/aerospike-client-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (43 loc) · 1.42 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
language: go
go:
- 1.2
- 1.3
- tip
install:
- mv $HOME/gopath/src/github.com/citrusleaf $HOME/gopath/src/github.com/aerospike
- export PATH=$PATH:$HOME/gopath/bin
- go get github.com/onsi/ginkgo/ginkgo
- go get github.com/onsi/gomega
- go get code.google.com/p/go.tools/cmd/cover
- wget -O aerospike-server.tgz http://aerospike.com/download/server/3.3.5/artifact/tgz
- tar xvzf aerospike-server.tgz
- cp -f .travis/aerospike.conf ./aerospike-server/share/etc
- cd aerospike-server
- mkdir instance1
- mkdir instance2
- ./bin/aerospike init --home instance1 --instance 1 --service-port 3000
- ./bin/aerospike init --home instance2 --instance 2 --service-port 3010
- cd instance1
- sudo ./bin/aerospike start
- cd ../..
- pwd
- sleep 5
# dump keep server log for debugging
- sudo tail -n 1000 aerospike-server/instance1/var/log/aerospike.log
script:
- go build tools/benchmark/benchmark.go
- go build tools/asinfo/asinfo.go
- go build tools/cli/cli.go
- go build examples/simple.go
- go build examples/blob.go
- go build examples/info.go
- ginkgo -cover -r -race -keepGoing -succinct -randomizeSuites
# test in multiple instance mode
- cd aerospike-server/instance1
- sudo ./bin/aerospike restart
- cd ../instance2
- sudo ./bin/aerospike start
- cd ../..
# make sure the instances are up and clean
- sleep 15
- ginkgo -cover -r -race -keepGoing -succinct -randomizeSuites