language: go

os:
  - linux
  - osx

go:
  - 1.4
  - 1.5.x
  - 1.6.x
  - 1.7.x
  - 1.8.x
  - 1.9.x
  - 1.10.x
  - 1.11.x
  - 1.12.x
  - tip

matrix:
    exclude:
        - os: osx
          go: 1.4
        - os: osx
          go: 1.5.x
        - os: osx
          go: 1.6.x

before_install:
  - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
#  - sudo add-apt-repository -y ppa:kubuntu-ppa/backports
#  - sudo apt-get update -qq
#  - sudo apt-get install libcv-dev libopencv-dev libopencv-contrib-dev libhighgui-dev libopencv-photo-dev libopencv-imgproc-dev libopencv-stitching-dev libopencv-superres-dev libopencv-ts-dev libopencv-videostab-dev

script:
  - go test -v -tags ci ./...
  - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi

notifications:
  email:
    on_success: change
    on_failure: always

language: go

os:
  - linux
  - osx

go:
  - 1.4
  - 1.5.x
  - 1.6.x
  - 1.7.x
  - 1.8.x
  - 1.9.x
  - 1.10.x
  - 1.11.x
  - 1.12.x
  - tip

matrix:
  allow_failures:
    - go: tip

  exclude:
    - os: osx
      go: 1.4
    - os: osx
      go: 1.5.x
    - os: osx
      go: 1.6.x

before_install:
  - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi
#  - sudo add-apt-repository -y ppa:kubuntu-ppa/backports
#  - sudo apt-get update -qq
#  - sudo apt-get install libcv-dev libopencv-dev libopencv-contrib-dev libhighgui-dev libopencv-photo-dev libopencv-imgproc-dev libopencv-stitching-dev libopencv-superres-dev libopencv-ts-dev libopencv-videostab-dev

script:
  - go test -v -tags ci ./...
  - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then $GOPATH/bin/goveralls -service=travis-ci; fi

notifications:
  email:
    on_success: change
    on_failure: always

Allow Go tip to fail on TravisCI
Allow Go tip to fail on TravisCI
