language: go

go:
  - "1.12"

install:
  - env GO111MODULE=on go get -u golang.org/x/lint/golint

script:
  - env GO111MODULE=on make test

deploy:
  - provider: script
    skip_cleanup: true
    script: curl -sL https://git.io/goreleaser | bash
    on:
      tags: true