language: go

sudo: false

go:
  - "1.10.3"

install:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
  - go get github.com/kisielk/errcheck
  - go get ./...

script:
  - go vet ./...
  - errcheck -exclude .errcheck_exclude ./...
  - go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
  - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
