language: go
sudo: false
go:
  - 1.3
  - 1.4
  - 1.5
  - tip
install:
  - go get golang.org/x/tools/cmd/vet
script:
  - go get -t -v ./...
  - diff -u <(echo -n) <(gofmt -d -s .)
  - go tool vet .
  - go test -v -race ./...
