language: go
go:
  - '1.9.2'
branches:
  only:
    - master
install:
  - make deps
  - make install
script:
  - make ci-test
after_success:
  - bash <(curl -s https://codecov.io/bash)
before_deploy:
  - if [ ! -z $TRAVIS_TAG ]; then make cross-build; fi
  - if [ ! -z $TRAVIS_TAG ]; then make dist; fi
deploy:
  - provider: releases
    skip_cleanup: true
    api_key: $GITHUB_TOKEN
    file_glob: true
    file: 'dist/*.{tar.gz,zip}'
    on:
      tags: true

language: go
go:
  - '1.9.2'
branches:
  only:
    - master
    - /^v\d+\.\d+(\.\d+)?(-\S*)?$/
install:
  - make deps
  - make install
script:
  - make ci-test
after_success:
  - bash <(curl -s https://codecov.io/bash)
before_deploy:
  - if [ ! -z $TRAVIS_TAG ]; then make cross-build; fi
  - if [ ! -z $TRAVIS_TAG ]; then make dist; fi
deploy:
  - provider: releases
    skip_cleanup: true
    api_key: $GITHUB_TOKEN
    file_glob: true
    file: 'dist/*.{tar.gz,zip}'
    on:
      tags: true

Allow build for tag push
Allow build for tag push
