forked from matryer/vice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 989 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
33
34
language: go
go:
- 1.11.x
before_install:
- go get github.com/golang/lint/golint
- go get honnef.co/go/tools/cmd/megacheck
# install nsq
- wget https://s3.amazonaws.com/bitly-downloads/nsq/nsq-1.0.0-compat.linux-amd64.go1.8.tar.gz
- tar xzvf nsq-1.0.0-compat.linux-amd64.go1.8.tar.gz
- sudo mv nsq-1.0.0-compat.linux-amd64.go1.8/bin/* /bin/
- nsqlookupd 2> /dev/null &
- nsqd --lookupd-tcp-address=127.0.0.1:4160 2> /dev/null &
- nsqadmin --lookupd-http-address=127.0.0.1:4161 2> /dev/null &
# install gnatsd & nats-streaming
- wget https://github.com/nats-io/nats-streaming-server/releases/download/v0.5.0/nats-streaming-server-v0.5.0-linux-amd64.zip
- unzip -d gnatsd -j nats-streaming-server-v0.5.0-linux-amd64.zip
- ./gnatsd/nats-streaming-server &
# give the queues some time to start.
- sleep 5
before_script:
- go vet ./...
- golint ./...
- megacheck ./...
services:
- redis
- rabbitmq
script:
- go test -v -timeout 30s -race ./...