Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
ship version v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed May 16, 2019
1 parent c4cf262 commit dcf57ae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GO=go
NAME := uniq2
VERSION := 0.1.0
VERSION := 0.2.0
REVISION := $(shell git rev-parse --short HEAD)
LDFLAGS := -X 'main.version=$(VERSION)'
-X 'main.revision=$(REVISION)'
Expand All @@ -17,9 +17,14 @@ deps:

dep ensure -vendor-only

setup: deps
setup: deps update_version
git submodule update --init

update_version:
@sed 's/const VERSION = .*/const VERSION = "${VERSION}"/g' cmd/uniq2/main.go > a
@mv a cmd/uniq2/main.go
@echo "Replace version to \"${VERSION}\""

test: setup
$(GO) test -covermode=count -coverprofile=coverage.out $$(go list ./... | grep -v vendor)

Expand Down

0 comments on commit dcf57ae

Please sign in to comment.