chore: Add travis configuration

This commit is contained in:
tsuyoshiwada 2018-02-18 21:30:12 +09:00
parent 9e216d5627
commit 1d37984592

19
.travis.yml Normal file
View file

@ -0,0 +1,19 @@
language: go
sudo: false
notifications:
email: false
go:
- 1.9
before_install:
- go get github.com/golang/dep/...
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
script:
- make test
branches:
only:
- master
after_success:
# todo
# - gox -os "darwin linux windows" -arch "amd64" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}" .
# - ghr --username tsuyoshiwada --token $GITHUB_TOKEN --replace `grep 'Version =' version.go | sed -E 's/.*"(.+)"$$/\1/'` dist/