env:
  global:
    # CodeClimate
    - CC_TEST_REPORTER_ID=f23f4d159f580cb3c3b44cda538d176938257143cd88c7b39f26a3029d562246

language: go

go:
  - 1.8
  - 1.9
  - 1.x
  - master

install: go get -t ./...

before_script:
  # CodeClimate
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

after_script:
  # CodeClimate
  - cp coverage.out c.out  # The coverage file is assumed to be called `c.out`.
  - ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT

matrix:
  allow_failures:
    - go: master
  fast_finish: true

env:
  global:
    # CodeClimate
    - CC_TEST_REPORTER_ID=f23f4d159f580cb3c3b44cda538d176938257143cd88c7b39f26a3029d562246

language: go

go:
  - 1.9
  - 1.x
  - master

install: go get -t ./...

before_script:
  # CodeClimate
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build

after_script:
  # CodeClimate
  - cp coverage.out c.out  # The coverage file is assumed to be called `c.out`.
  - ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT

matrix:
  allow_failures:
    - go: master
  fast_finish: true

Remove support for Go 1.8.
Remove support for Go 1.8.

This is because the tests now make use of `testing.T.Helper`, which was
introduced in Go 1.9.
