language: go

go:
  - 1.8
  - 1.x

install:
  - go get -u github.com/golang/dep/...
  - dep ensure

script:
  - go test -v -race -coverprofile=coverage.txt -covermode=atomic

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