Skip to content

Commit

Permalink
only run golint on latest version of go
Browse files Browse the repository at this point in the history
  • Loading branch information
cpuguy83 committed Mar 8, 2019
1 parent ccc981b commit de1bbf2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Expand Up @@ -3,24 +3,29 @@ language: go

go:
- "stable"
- "1.10.4"
- "1.11.x"
- "1.10.x"
- "1.9.x"
- "1.8.x"

matrix:
include:
- go: "stable"
env: GOLINT=true
allow_failures:
- go: tip
fast_finish: true

before_script:
- go get -u golang.org/x/lint/golint

before_install:
- /bin/sh -c "if [ ! -z \"${GOLINT}\" ]; then go get -u golang.org/x/lint/golint; fi"

script:
- go test --race ./...

after_script:
- test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
- test -z "$(golint ./... | tee /dev/stderr)"
- if [ ! -z "${GOLINT}" ]; then echo running golint; golint --set_exit_status ./...; else echo skipping golint due to old version of go; fi
- go vet ./...

os:
Expand Down

0 comments on commit de1bbf2

Please sign in to comment.