File tree Expand file tree Collapse file tree 2 files changed +40
-5
lines changed
Expand file tree Collapse file tree 2 files changed +40
-5
lines changed Original file line number Diff line number Diff line change 1+ [run ]
2+ deadline = " 10m"
3+ tests = true
4+
5+ [linters ]
6+ disable-all = true
7+ enable = [
8+ " deadcode" ,
9+ " depguard" ,
10+ " errcheck" ,
11+ " goconst" ,
12+ " gocyclo" ,
13+ " gocritic" ,
14+ " gofmt" ,
15+ " golint" ,
16+ " gosec" ,
17+ " gosimple" ,
18+ " ineffassign" ,
19+ " maligned" ,
20+ " misspell" ,
21+ " nakedret" ,
22+ " staticcheck" ,
23+ " structcheck" ,
24+ " typecheck" ,
25+ " unconvert" ,
26+ " unparam" ,
27+ " varcheck" ,
28+ " vet" ,
29+ " vetshadow" ,
30+ ]
Original file line number Diff line number Diff line change @@ -17,12 +17,15 @@ matrix:
1717 allow_failures :
1818 - go : tip
1919
20- before_install :
21- - " if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then go get -u golang.org/x/lint/golint; fi"
22-
2320install :
2421 - go get -v -t ./...
2522
23+ before_script :
24+ - |
25+ if [[ $TRAVIS_GO_VERSION == 1.12 && $(arch) != 'ppc64le' ]]; then
26+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin
27+ fi
28+
2629script :
2730 - |
2831 if [ $(arch) == "ppc64le" ]; then
@@ -36,7 +39,9 @@ script:
3639 else
3740 go test -race -v -tags appengine
3841 fi
39- - " if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then go vet ./...; fi"
40- - " if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then golint .; fi"
42+ - |
43+ if [[ $TRAVIS_GO_VERSION == 1.12 && $(arch) != 'ppc64le' ]]; then
44+ golangci-lint run
45+ fi
4146
4247sudo : false
You can’t perform that action at this time.
0 commit comments