Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Commit

Permalink
add make release
Browse files Browse the repository at this point in the history
  • Loading branch information
mattes committed Feb 9, 2017
1 parent f474e4c commit f47436e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ script:

after_success:
- goveralls -service=travis-ci -coverprofile .coverage/combined.txt
- make list-external-deps > dependency_tree.txt && cat dependency_tree.txt

before_deploy:
- make list-external-deps > dependency_tree.txt && cat dependency_tree.txt
- make build-cli

deploy:
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ rewrite-import-paths:
find . -name '*.go' -type f -execdir sed -i '' s%\"github.com/mattes/migrate%\"github.com/$(REPO_OWNER)/migrate%g '{}' \;


# make release V=0.0.0
release:
git tag v$(V)
@read -p "Press enter to confirm and push to origin ..." && git push origin v$(V)


define external_deps
@echo -- $(1)
@go list -f '{{join .Deps "\n"}}' $(1) | grep -v github.com/$(REPO_OWNER)/migrate | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
Expand All @@ -90,7 +96,7 @@ endef


.PHONY: build-cli clean test-short test test-with-flags deps html-coverage \
restore-import-paths rewrite-import-paths list-external-deps
restore-import-paths rewrite-import-paths list-external-deps release

SHELL = /bin/bash
RAND = $(shell echo $$RANDOM)
Expand Down

0 comments on commit f47436e

Please sign in to comment.