Skip to content

Commit

Permalink
Edit .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
osamingo committed Sep 11, 2019
1 parent 3d7daff commit 351ceaa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
10 changes: 7 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ linters-settings:
errcheck:
check-type-asserts: true
check-blank: true
ignore: fmt:Fprint.*,
misspell:
locale: US
lll:
line-length: 130

linters:
enable-all: true

issues:
exclude-rules:
- path: _test\.go
linters:
- lll
- funlen
15 changes: 5 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,19 @@ language: go
go:
- 1.11.x
- 1.12.x
- tip

matrix:
allow_failures:
- go: tip
- 1.13.x

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

install:
- dep ensure
- GO111MODULE=on go mod vendor

before_script:
- golangci-lint run
- golangci-lint run ./...

script:
- go test -covermode=atomic -coverprofile=coverage.txt
- go test -covermode=atomic -coverprofile=coverage.txt ./...

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

0 comments on commit 351ceaa

Please sign in to comment.