forked from heetch/confita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (21 loc) · 815 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
sudo: required
language: go
services:
- docker
before_install:
- wget "https://github.com/Masterminds/glide/releases/download/v0.13.1/glide-v0.13.1-linux-amd64.tar.gz"
- mkdir -p $GOPATH/bin
- tar -vxz -C $GOPATH/bin --strip=1 -f glide-v0.13.1-linux-amd64.tar.gz
- export PATH="$GOPATH/bin:$PATH"
- docker run -d -p 2379:2379 quay.io/coreos/etcd /usr/local/bin/etcd -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379
- docker run -d -p 8500:8500 --name consul consul
- docker run -d -p 8200:8200 --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=root' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' vault
env:
- VAULT_ADDR=http://127.0.0.1:8200
install: glide install
go:
- 1.9
- "1.10"
- tip
script:
- go test -v -race -cover -timeout=1m $(glide novendor)