language: go

os:
  - linux
  - osx
  - windows

go:
  - tip
  - 1.12
  - 1.11

script:
  - GO111MODULE=on go test -v -coverprofile=coverage.txt -covermode=atomic ./...

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

matrix:
  allow_failures:
    - go: tip