Skip to content
Snippets Groups Projects
Commit b59509f4 authored by 高辛格's avatar 高辛格
Browse files

modify travis

parent d8190a16
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment