Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix travis releases #14

Merged
merged 1 commit into from
Mar 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file:
- out/rakkess-linux-amd64
- out/rakkess-linux-amd64.sha256
- out/rakkess-windows-amd64
- out/rakkess-windows-amd64.sha256
- out/rakkess-darwin-amd64
- out/rakkess-darwin-amd64.sha256
- out/rakkess-linux-amd64.gz
- out/rakkess-linux-amd64.gz.sha256
- out/rakkess-windows-amd64.gz
- out/rakkess-windows-amd64.gz.sha256
- out/rakkess-darwin-amd64.gz
- out/rakkess-darwin-amd64.gz.sha256
- out/bundle.tar.gz
- out/bundle.tar.gz.sha256
skip_cleanup: true
Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ GO_LDFLAGS += -X $(VERSION_PACKAGE).buildDate=$(shell date +'%Y-%m-%dT%H:%M:%SZ'
GO_LDFLAGS += -X $(VERSION_PACKAGE).gitCommit=$(COMMIT)
GO_LDFLAGS +="

ifdef ZOPFLI
COMPRESS:=zopfli -c
else
COMPRESS:=gzip --best -k -c
endif

GO_FILES := $(shell find . -type f -name '*.go')

.PHONY: test
Expand Down Expand Up @@ -90,10 +96,10 @@ lint:

.PRECIOUS: %.gz
%.gz: %
zopfli -c "$<" > "$@"
$(COMPRESS) "$<" > "$@"

.INTERMEDIATE: $(BUNDLE:.gz=)
$(BUNDLE:.gz=):
$(BUNDLE:.gz=): $(TARGETS)
tar cf "$@" -C $(BUILDDIR) $(patsubst $(BUILDDIR)/%,%,$(TARGETS))

$(BUILDDIR):
Expand Down