language: go
sudo: required
dist: trusty

go:
  - 1.5.4
  - 1.6.3
  - 1.7
  - tip

env:
  global:
    - TOOLS_CMD=golang.org/x/tools/cmd
    - PATH=$GOROOT/bin:$PATH
    - SUDO_PERMITTED=1

matrix:
  allow_failures:
    - go: tip

install:
 - go get golang.org/x/tools/cmd/cover

script:
 - ./test
