From a7fb6a39cbba6fdc1cb7a54acf91104df8478b68 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:28:51 +0800 Subject: [PATCH] modify travis --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d739b5af..1fda4194b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,8 @@ go: - "1.12" env: - - GO111MODULE=on CONSUL_VERSION=0.9.2 + - 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 @@ -14,8 +15,9 @@ before_install: - mv consul ~/bin - export PATH="~/bin:$PATH" +install: true + script: - - env | grep GO111MODULE - go fmt ./... && [[ -z `git status -s` ]] - go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic -- GitLab