language: go
sudo: false
notifications:
  email: false
go:
  - 1.9
before_install:
  - go get github.com/mattn/goveralls
before_script:
  - export TZ=Asia/Tokyo
  - sudo timedatectl set-timezone Asia/Tokyo
  - timedatectl
script:
  - make test
after_success:
  - goveralls -service=travis-ci
before_deploy:
  - go get github.com/mitchellh/gox
  - go get github.com/tcnksm/ghr
deploy:
  provider: script
  script: ./scripts/release.sh
  on:
    tags: true
    branch: master
