diff --git a/.travis.yml b/.travis.yml index cac34dc74ba1a3be7ba4daffdcd2aa28bc18566d..338fff2bb41137fae8287f23c7cc3824287fde14 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ before_install: - go get github.com/mitchellh/gox after_success: - - if [ ! -z "$TRAVIS_TAG" ]; then gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"; fi + - if [ ! -z "$TRAVIS_TAG" ]; then make releases; fi deploy: provider: releases diff --git a/Makefile b/Makefile index 9d0e24ec0deb1c3be52e4dbabff652a0817beb36..81b0f7cecdd538527a30d8d0d4b0ec7a0bc8ef95 100644 --- a/Makefile +++ b/Makefile @@ -27,6 +27,10 @@ install: go generate go install -ldflags "$(LDFLAGS)" . +releases: + go generate + gox -ldflags "$(LDFLAGS)" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" + test: go test -v -bench=. ./... @@ -51,4 +55,4 @@ clean-local-identities: git for-each-ref refs/remotes/origin/identities/ | cut -f 2 | $(XARGS) -n 1 git update-ref -d rm -f .git/git-bug/identity-cache -.PHONY: build install test pack-webui debug-webui clean-local-bugs clean-remote-bugs +.PHONY: build install releases test pack-webui debug-webui clean-local-bugs clean-remote-bugs