language: go
sudo: false
go:
  - 1.6.4
  - 1.7.4
  - tip

git:
  depth: 3

install:
  - go get -v github.com/kardianos/govendor
  - govendor sync

script:
  - go test -v -covermode=count -coverprofile=coverage.out

after_success:
  - bash <(curl -s https://codecov.io/bash)

notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/7f95bf605c4d356372f4
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false