From b59509f44fdb4b52498fde769da107bf5dd11629 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 15:11:24 +0800 Subject: [PATCH] modify travis --- .travis.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e76234687..47ffe50b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,16 +7,17 @@ go: env: - 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" +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 script: + - consul --help - go fmt ./... && [[ -z `git status -s` ]] - go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic -- GitLab