sudo: false
language: go
go:
  - 1.10.x
  - 1.x
  - tip
matrix:
  allow_failures:
    - go: tip
before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - go get golang.org/x/tools/cmd/cover
  - test -z "$(gofmt -s -l . | tee /dev/stderr)"
  - go tool vet -all -structtags -shadow .
script:
  - $HOME/gopath/bin/goveralls -service=travis-ci