Skip to content

Commit

Permalink
Introducing goreleaser for building binary packages
Browse files Browse the repository at this point in the history
For automatic creation of binary packages, introducing goreleaser
(see https://github.com/goreleaser/goreleaser).

Resolves: #2
  • Loading branch information
andreas-schroeder committed Aug 10, 2017
1 parent fc73a0e commit e77a4e7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
kafka-health-check
vendor/*/
compatibility/vendor/*/
dist/*
9 changes: 9 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
builds:
- main: main.go
binary: kafha-health-check
goos:
- darwin
- linux
- freebsd
goarch:
- amd64
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e77a4e7

Please sign in to comment.