diff --git a/.travis.yml b/.travis.yml index e76234687de98322618baedcf9c87655fcd0310d..47ffe50b03c72b7e308ea5638dc68506fd80ebaf 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