diff --git a/.travis.yml b/.travis.yml index 2ad76be..7541030 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ go: - master env: - GO111MODULE=on + GOLANGCI_LINT_VERSION=1.35.2 services: - docker @@ -20,6 +21,6 @@ script: - go test -coverprofile=coverage.txt -covermode=atomic - INTEGRATION=TRUE go test - go build -v ./ - - if [[ "$(go version)" =~ "go version go1.11" ]]; then exit 0; else go get -u github.com/golangci/golangci-lint/cmd/golangci-lint && golangci-lint run -v; fi + - if [[ "$(go version)" =~ "go version go1.11" ]]; then exit 0; else curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin "v${GOLANGCI_LINT_VERSION}" && golangci-lint run -v; fi after_success: - bash <(curl -s https://codecov.io/bash)