language: go

go:
  - 1.9.x # See README.md for current minimum version.
  - 1.10.x
  - 1.11.x
  - 1.12.x

script:
  - make check_license unused test-short
  - if [[ ! $TRAVIS_GO_VERSION =~ ^1\.9\.[x0-9]+$ ]]; then make lint; fi
  # Style is only checked against the latest supported Go version.
  - if [[ $TRAVIS_GO_VERSION =~ ^1\.(12)\. ]]; then make style; fi

language: go

go:
  - 1.9.x # See README.md for current minimum version.
  - 1.10.x
  - 1.11.x
  - 1.12.x

script:
  - make check_license unused test-short
  - if [[ ! $TRAVIS_GO_VERSION =~ ^1\.(9|10)\. ]]; then make lint; fi
  # Style is only checked against the latest supported Go version.
  - if [[ $TRAVIS_GO_VERSION =~ ^1\.(12)\. ]]; then make style; fi

Make lint only run on 1.11 and higher
Make lint only run on 1.11 and higher

Signed-off-by: beorn7 <91e32ae1d26bd312b370cf8378a5a83accca90a0@grafana.com>
