language: go
dist: trusty

services:
  - rabbitmq

matrix:
  include:
    - go: "1.12.x"
      env:
        - GO111MODULE=on
    - go: "1.13.x"
      env:
        - GO111MODULE=on
    - go: "1.14.x"
    - go: "1.15.x"
    - go: "tip"

before_install:
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls

install:
  - go get -d -t ./...
  - go get -u golang.org/x/lint/golint

script:
  - make test vet lint bench
  - $GOPATH/bin/goveralls -service=travis-ci

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/ead3c37d57527214e9f2
      - https://webhooks.gitter.im/e/e57478303f87ecd7bffc
    on_success: change
    on_failure: always