Skip to content

Commit 351ceaa

Browse files
committed
Edit .travis.yml
1 parent 3d7daff commit 351ceaa

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.golangci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ linters-settings:
22
errcheck:
33
check-type-asserts: true
44
check-blank: true
5-
ignore: fmt:Fprint.*,
65
misspell:
76
locale: US
8-
lll:
9-
line-length: 130
107

118
linters:
129
enable-all: true
10+
11+
issues:
12+
exclude-rules:
13+
- path: _test\.go
14+
linters:
15+
- lll
16+
- funlen

.travis.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,19 @@ language: go
44
go:
55
- 1.11.x
66
- 1.12.x
7-
- tip
8-
9-
matrix:
10-
allow_failures:
11-
- go: tip
7+
- 1.13.x
128

139
before_install:
14-
- go get -u github.com/golang/dep/cmd/dep github.com/golangci/golangci-lint/cmd/golangci-lint
10+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
1511

1612
install:
17-
- dep ensure
13+
- GO111MODULE=on go mod vendor
1814

1915
before_script:
20-
- golangci-lint run
16+
- golangci-lint run ./...
2117

2218
script:
23-
- go test -covermode=atomic -coverprofile=coverage.txt
19+
- go test -covermode=atomic -coverprofile=coverage.txt ./...
2420

2521
after_success:
2622
- bash <(curl -s https://codecov.io/bash)
27-

0 commit comments

Comments
 (0)