language: go

go:
  - 1.12.x
  - master

matrix:
  allow_failures:
    - go: master
  fast_finish: true

install:
  - go get -d -v -t ./...
  - go get github.com/haya14busa/goverage
  # Install linters.
  - go get github.com/haya14busa/reviewdog/cmd/reviewdog
  - go get golang.org/x/lint/golint
  - go get github.com/kisielk/errcheck
  - go get honnef.co/go/tools/cmd/gosimple
  - go get honnef.co/go/tools/cmd/staticcheck
  - go get honnef.co/go/tools/cmd/unused
  - go get github.com/client9/misspell/cmd/misspell

script:
  - reviewdog -reporter=github-pr-check
  - go test -v -race ./...
  - go generate ./...
  - (! git diff | grep '^') # check diff
  - goverage -coverprofile=coverage.txt ./...

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

language: go

go:
  - 1.12.x
  - master

matrix:
  allow_failures:
    - go: master
  fast_finish: true

install:
  - go get -d -v -t ./...
  - go get github.com/haya14busa/goverage
  # Install linters.
  - go get github.com/haya14busa/reviewdog/cmd/reviewdog
  - go get golang.org/x/lint/golint
  - go get github.com/kisielk/errcheck
  - go get honnef.co/go/tools/cmd/gosimple@2019.1.1
  - go get honnef.co/go/tools/cmd/staticcheck@2019.1.1
  - go get honnef.co/go/tools/cmd/unused@2019.1.1
  - go get github.com/client9/misspell/cmd/misspell

script:
  - reviewdog -reporter=github-pr-check
  - go test -v -race ./...
  - go generate ./...
  - (! git diff | grep '^') # check diff
  - goverage -coverprofile=coverage.txt ./...

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

Fix build error caused by go tools installation
Fix build error caused by go tools installation
