language: go

# prevent double test runs for PRs
branches:
  only:
    - "master"

# In theory, older versions would probably work fine, but since this isn't a 
# library, I'm not going to worry about older versions for now.
go:
  - 1.9.x
  - 1.8.x
  - 1.7.x

# don't call go get ./... because this hides when deps are
# not packaged into the vendor directory.
install: true

# don't call go test -v because we want to be able to only show t.Log output when
# a test fails
script:  go test -race $(go list ./... | grep -v /vendor/)

# run a test for every major OS
env:
  - GOOS=linux
  - GOOS=windows
  - GOOS=darwin
  
