From 1d37984592cb01db55d72e1ccd131ee2d9d979c4 Mon Sep 17 00:00:00 2001 From: tsuyoshiwada Date: Sun, 18 Feb 2018 21:30:12 +0900 Subject: [PATCH] chore: Add travis configuration --- .travis.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7af49db --- /dev/null +++ b/.travis.yml @@ -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/