fetch consul binary for tests

This commit is contained in:
James Bardin 2017-03-13 18:07:10 -04:00
parent 4d6242dfe0
commit 54224eb41e
1 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,18 @@ sudo: false
language: go language: go
go: go:
- 1.8 - 1.8
env:
- CONSUL_VERSION=0.7.5
# Fetch consul for the backend and provider tests
before_install:
- curl -sLo consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
- unzip consul.zip
- mkdir ~/bin
- mv consul ~/bin
- export PATH="~/bin:$PATH"
install: install:
# This script is used by the Travis build to install a cookie for # This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch # go.googlesource.com so rate limits are higher when using `go get` to fetch