language: go
dist: trusty
sudo: false

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

matrix:
  allow_failures:
    - go: tip

install:
  - go version
  - export GOBIN="$GOPATH/bin"
  - export PATH="$PATH:$GOBIN"
  - go get -u github.com/golang/lint/golint
  - go get golang.org/x/tools/cmd/goimports
  - go get github.com/mitchellh/gox
  - go get -t .

script:
  - go test -v
  - gox -os="linux windows freebsd openbsd"
  - go run build.go
  - diff <(goimports -d *.go) <(printf "")
  - diff <(unused .) <(printf "")
  - diff <(gosimple .) <(printf "")
  - diff <(staticcheck .) <(printf "")

after_success:
  - diff <(golint ./...) <(printf "")

language: go
dist: trusty
sudo: false

go:
  - "1.9.x"
  - "1.10.x"
  - "1.11.x"

install:
  - go version
  - export GOBIN="$GOPATH/bin"
  - export PATH="$PATH:$GOBIN"
  - go get -u github.com/golang/lint/golint
  - go get golang.org/x/tools/cmd/goimports
  - go get github.com/mitchellh/gox
  - go get -t .

script:
  - go test -v
  - gox -os="linux windows freebsd openbsd"
  - go run build.go
  - diff <(goimports -d *.go) <(printf "")
  - diff <(unused .) <(printf "")
  - diff <(gosimple .) <(printf "")
  - diff <(staticcheck .) <(printf "")

after_success:
  - diff <(golint ./...) <(printf "")

Use correct versions of Go
Use correct versions of Go
