language: go
sudo: false
env:
  - GO111MODULE=on
matrix:
  include:
    - os: linux
      go: 1.12.x
      cache:
        directories:
          - $HOME/.cache/go-build
          - $HOME/go/pkg/mod
    - os: linux
      go: 1.11.x
      cache:
        directories:
          - $HOME/.cache/go-build
          - $HOME/go/pkg/mod
    - os: osx
      go: 1.12.x
      cache:
        directories:
          - $HOME/.cache/go-build
          - $HOME/go/pkg/mod
    - os: osx
      go: 1.11.x
      cache:
        directories:
          - $HOME/Library/Caches/go-build
          - $HOME/go/pkg/mod
script:
  - env GO111MODULE=on go build ./...
  - env GO111MODULE=on ./run_tests.sh

language: go
sudo: false
env:
  - GO111MODULE=on
matrix:
  include:
    - os: linux
      go: 1.12.x
      cache:
        directories:
          - $HOME/.cache/go-build
          - $HOME/go/pkg/mod
    - os: linux
      go: 1.11.x
      cache:
        directories:
          - $HOME/.cache/go-build
          - $HOME/go/pkg/mod
script:
  - env GO111MODULE=on go build ./...
  - env GO111MODULE=on ./run_tests.sh

Remove macOS runners from Travis-CI
Remove macOS runners from Travis-CI

These runners are very slow to start and don't provide a tangible
benefit to the project due to the lack of any platform-specific code
that needs to be tested.
