diff --git a/.gitignore b/.gitignore index a320a11..8c86847 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ kafka-health-check vendor/*/ compatibility/vendor/*/ +dist/* diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..7588d21 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,9 @@ +builds: + - main: main.go + binary: kafha-health-check + goos: + - darwin + - linux + - freebsd + goarch: + - amd64 diff --git a/.travis.yml b/.travis.yml index 4a48cc3..a7aaa57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,3 +16,6 @@ install: script: - make test-no-race - make compatibility + +after_success: + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash diff --git a/Makefile b/Makefile index f39e677..0b8759b 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,9 @@ install: @go install . deps: - @go get -u github.com/kardianos/govendor + @go get -u -v github.com/kardianos/govendor @govendor sync - cd compatibility; govendor sync + @cd compatibility; govendor sync test: build @go fmt . ./check