Browse Source
fix version not working when builded by travis
pull/5/merge
v0.2.4
Michael Muré
1 year ago
No known key found for this signature in database
GPG Key ID: A4457C029293126F
2 changed files with
5 additions and
2 deletions
-
.travis.yml
-
Makefile
|
|
@ -13,7 +13,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 |
|
|
|
|
|
@ -15,4 +15,7 @@ build: |
|
|
|
install: |
|
|
|
go install -ldflags "$(LDFLAGS)" . |
|
|
|
|
|
|
|
.PHONY: build install |
|
|
|
releases: |
|
|
|
gox -ldflags "$(LDFLAGS)" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" |
|
|
|
|
|
|
|
.PHONY: build install releases |