Configure releaser

This commit is contained in:
Max Claus Nunes 2018-06-21 00:48:36 -03:00
parent d6093dc9ea
commit 1107ded5c8
4 changed files with 20 additions and 1 deletions

11
.goreleaser.yml Normal file
View File

@ -0,0 +1,11 @@
builds:
- main: main.go
binary: gaper
goos:
- windows
- darwin
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0

View File

@ -18,3 +18,10 @@ after_success:
notifications: notifications:
email: false email: false
deploy:
- provider: script
skip_cleanup: true
script: curl -sL http://git.io/goreleaser | bash
on:
tags: true

View File

@ -7,6 +7,7 @@ gaper
[![Coverage Status](https://codecov.io/gh/maxcnunes/gaper/branch/master/graph/badge.svg)](https://codecov.io/gh/maxcnunes/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 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) [![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. Restarts programs when they crash or a watched file changes.

View File

@ -64,7 +64,7 @@ func (r *runner) Run() (*exec.Cmd, error) {
} }
// Kill the current process running for the Golang project // 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 { if r.command == nil || r.command.Process == nil {
return nil return nil
} }