File tree Expand file tree Collapse file tree 2 files changed +41
-5
lines changed Expand file tree Collapse file tree 2 files changed +41
-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,16 @@ matrix:
17
17
allow_failures :
18
18
- go : tip
19
19
20
- before_install :
21
- - " if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then go get -u golang.org/x/lint/golint; fi"
22
-
23
20
install :
24
21
- go get -v -t ./...
25
22
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
+ golangci-lint run
28
+ fi
29
+
26
30
script :
27
31
- |
28
32
if [ $(arch) == "ppc64le" ]; then
@@ -36,7 +40,9 @@ script:
36
40
else
37
41
go test -race -v -tags appengine
38
42
fi
39
- - " if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then go vet ./...; fi"
40
- - " if [[ $TRAVIS_GO_VERSION == 1.11 ]]; then golint .; fi"
43
+ - |
44
+ if [[ $TRAVIS_GO_VERSION == 1.12 && $(arch) != 'ppc64le' ]]; then
45
+ golangci-lint run
46
+ fi
41
47
42
48
sudo : false
You can’t perform that action at this time.
0 commit comments