Skip to content

Commit 1617492

Browse files
authored
CI: Cache dependencies, update golangci-lint
1 parent 3f89614 commit 1617492

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
sudo: false
22
language: go
33

4+
cache:
5+
directories:
6+
- /home/travis/gopath/pkg/linux_amd64
7+
- /home/travis/gopath/pkg/mod
8+
49
go:
510
- "1.x"
611

712
env:
813
- GO111MODULE=on
914

1015
install:
11-
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.12.3
16+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.16.0
1217

1318
script:
1419
- golangci-lint run -E megacheck,deadcode,typecheck,govet,misspell,prealloc,gofmt,gocyclo,goconst,dupl,unconvert,interfacer,unparam

0 commit comments

Comments
 (0)