github.com/tsuyoshiwada/git-prout@v0.0.0-20170402150409-5c51421d4bdb/.travis.yml (about) 1 language: go 2 sudo: false 3 go: 4 - 1.8 5 - tip 6 before_install: 7 - go get github.com/golang/dep/... 8 - go get golang.org/x/tools/cmd/cover 9 - go get github.com/mitchellh/gox 10 - go get github.com/tcnksm/ghr 11 install: 12 - $GOPATH/bin/dep ensure 13 script: 14 - go test -v 15 branches: 16 only: 17 - master 18 after_success: 19 - gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}" 20 - ghr --username tsuyoshiwada --token $GITHUB_TOKEN --replace `grep 'Version =' version.go | sed -E 's/.*"(.+)"$$/\1/'` dist/