language: go
sudo: false
matrix:
  include:
    - go: 1.x
    - go: 1.8.x
    - go: tip
    - name: "Bazel Check"
      go: 1.x
      script: ./travisBazel.sh
      before_install:
        - echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
        - curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
        - sudo apt-get update && sudo apt-get install bazel

before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
  - go get github.com/sergi/go-diff/diffmatchpatch

script: ./travisBuild.sh
