language: go
go: 1.9
install: make setup
script: make test
after_success:
  - bash <(curl -s https://codecov.io/bash)
notifications:
  email: false
deploy:
  - provider: script
    skip_cleanup: true
    before_script: gem install fpm
    script: curl -sL http://git.io/goreleaser | bash
    on:
      tags: true

language: go
go: 1.8.1
install: make setup
script: make test
after_success:
  - bash <(curl -s https://codecov.io/bash)
  - gem install fpm
  - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
notifications:
  email: false

Revert "go 1.9, using deploy instead of after_success"
Revert "go 1.9, using deploy instead of after_success"

This reverts commit 89ec7c322f1bce8d4359d63ac475bb4c23fa3c82.
