diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..647bf8c --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,11 @@ +builds: + - main: main.go + binary: gaper + goos: + - windows + - darwin + - linux + goarch: + - amd64 + env: + - CGO_ENABLED=0 diff --git a/.travis.yml b/.travis.yml index dbd0c8f..4be5593 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,3 +18,10 @@ after_success: notifications: email: false + +deploy: + - provider: script + skip_cleanup: true + script: curl -sL http://git.io/goreleaser | bash + on: + tags: true diff --git a/README.md b/README.md index 0523589..5b37154 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ gaper [![Coverage Status](https://codecov.io/gh/maxcnunes/gaper/branch/master/graph/badge.svg)](https://codecov.io/gh/maxcnunes/gaper) [![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/maxcnunes/gaper) [![Go Report Card](https://goreportcard.com/badge/github.com/maxcnunes/gaper)](https://goreportcard.com/report/github.com/maxcnunes/gaper) +[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg?style=flat-square)](https://github.com/goreleaser) Restarts programs when they crash or a watched file changes. diff --git a/runner.go b/runner.go index b99717e..fe2f3c7 100644 --- a/runner.go +++ b/runner.go @@ -64,7 +64,7 @@ func (r *runner) Run() (*exec.Cmd, error) { } // Kill the current process running for the Golang project -func (r *runner) Kill() error { +func (r *runner) Kill() error { // nolint gocyclo if r.command == nil || r.command.Process == nil { return nil }