language: go
sudo: false

go:
  - "1.8.X"
  - "1.9.X"
  - "1.10.X"
  - tip

os:
  - linux
  - osx

install:
  - go get -t ./...
  - go get -u github.com/golang/lint/golint
  - go get -u golang.org/x/tools/cmd/goimports

script:
  - go vet ./...
  - go test -v -cpu=2 ./...
  - go test -v -cpu=1,2,4 -short -race ./...
  - diff -au <(goimports -d .) <(printf "")
  - diff -au <(golint ./...) <(printf "")

language: go
sudo: false

matrix:
  include:
    - os: linux
      go: "1.9.x"
    - os: linux
      go: "1.10.x"
    - os: linux
      go: "tip"
    - os: osx
      go: "1.10.x"

install:
  - go get -t ./...
  - go get -u github.com/golang/lint/golint
  - go get -u golang.org/x/tools/cmd/goimports

script:
  - go vet ./...
  - go test -v -cpu=2 ./...
  - go test -v -cpu=1,2,4 -short -race ./...
  - diff -au <(goimports -d .) <(printf "")
  - diff -au <(golint ./...) <(printf "")

Reduce Go versions for Travis
Reduce Go versions for Travis
