From 54224eb41efdc3bf654084ace3d3e05cc8ccf981 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Mon, 13 Mar 2017 18:07:10 -0400 Subject: [PATCH] fetch consul binary for tests --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index dcb8c11d4..a548b6b77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,18 @@ sudo: false language: go go: - 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: # 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