You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ go:
6
6
- master
7
7
env:
8
8
- GO111MODULE=on
9
+
GOLANGCI_LINT_VERSION=1.35.2
9
10
10
11
services:
11
12
- docker
@@ -20,6 +21,6 @@ script:
20
21
- go test -coverprofile=coverage.txt -covermode=atomic
21
22
- INTEGRATION=TRUE go test
22
23
- go build -v ./
23
-
- 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
24
+
- 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
0 commit comments