language: go

go:
    - 1.4
    - 1.5
    - 1.6
    - 1.7
    - 1.8
    - 1.x
    - tip

before_install:
  - export PATH=$HOME/gopath/bin:$PATH

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

matrix:
    allow_failures:
        - go: tip

git:
  depth: 10
