language: go
sudo: required
dist: trusty

go:
  - 1.4
  - 1.5.3
  - 1.6
  - 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
