sudo: false
language: go
go:
  - "1.2"
  - "1.3"
  - "1.4"
  - "1.5"
  - "1.6"
  - "1.7"
  - tip

before_install:
  - go install -race std
  - go get golang.org/x/tools/cmd/cover
  - go get -v ./...

script:
  - go test -v -race ./...
  - go test -v -cover ./...

matrix:
  allow_failures:
    - go: tip
