language: go
sudo: false

go:
  - 1.7.x
  - 1.8.x

before_install:
  - go get github.com/mattn/goveralls

install:
  - # Skip

script:
  - go get -t -v ./...
  - diff -u <(echo -n) <(gofmt -d .)
  - go tool vet .
  - go vet $(go list ./... | grep -v "vendor")
  - go test -v -race $(go list ./... | grep -v "vendor")
  - go test -v -covermode=count -coverprofile=coverage.out ./...
  - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

language: go
sudo: false

go:
  - 1.7.x
  - 1.8.x

before_install:
  - go get github.com/mattn/goveralls

install:
  - # Skip

script:
  - go get -t -v ./...
  - diff -u <(echo -n) <(gofmt -d .)
  - go tool vet .
  - go vet $(go list ./... | grep -v "vendor")
  - go test -v -race $(go list ./... | grep -v "vendor")
  - goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN

Allow goveralls to handle test coverage
Allow goveralls to handle test coverage
