From 4e453b741d2530e27021d5db4c1b65c5fdd026d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=BE=9B=E6=A0=BC?= <xg.gao@tianrang-inc.com> Date: Wed, 17 Jul 2019 14:49:46 +0800 Subject: [PATCH] add consul in travis --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2038d8ecc..60f77ff85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,14 @@ go: - "1.12" env: - - GO111MODULE=on + - GO111MODULE=on CONSUL_VERSION=0.9.2 + +before_install: + - curl -sLo consul.zip https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip + - unzip consul.zip + - mkdir -p ~/bin + - mv consul ~/bin + - export PATH="~/bin:$PATH" install: true -- GitLab