language: go
go:
  - "1.8.x"
  - "1.9.x"
  - "1.10.x"
  - "1.11.x"
  - "stable"
  - tip

matrix:
  include:
    - go: "stable"
      env: GOLINT=true
  allow_failures:
    - go: tip

script:
  - if [ ! -z "${GOLINT}" ]; then script/setup/dev-tools; fi
  - go build -i .
  - if [ ! -z "${GOLINT}" ]; then make check; fi
  - go build
  - go test -v ./...

language: go
go:
  - "1.8.x"
  - "1.9.x"
  - "1.10.x"
  - "1.11.x"
  - "stable"
  - tip

matrix:
  allow_failures:
    - go: tip

script:
  - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then script/setup/dev-tools; fi
  - go build -i .
  - if [ "${TRAVIS_GO_VERSION}" = "stable" ]; then echo running check scripts; make check; fi
  - go build
  - go test -v ./...

Use TRAVIS_GO_VERSION env var instead of matrix
Use TRAVIS_GO_VERSION env var instead of matrix

This should save a CI run (one with GOLINT and one without).

Signed-off-by: Brian Goff <dc73d0991b982a8303e713ef531a313af77e242a@gmail.com>
(cherry picked from commit d3f925523e120fb4cd2a17c7b1cf8377d36ac1cb)
Signed-off-by: Brian Goff <dc73d0991b982a8303e713ef531a313af77e242a@gmail.com>
