This repository was archived by the owner on Jun 28, 2018. It is now read-only.
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ script:
23
23
24
24
after_success :
25
25
- goveralls -service=travis-ci -coverprofile .coverage/combined.txt
26
+ - make list-external-deps > dependency_tree.txt && cat dependency_tree.txt
26
27
27
28
before_deploy :
28
- - make list-external-deps > dependency_tree.txt && cat dependency_tree.txt
29
29
- make build-cli
30
30
31
31
deploy :
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ rewrite-import-paths:
82
82
find . -name ' *.go' -type f -execdir sed -i ' ' s%\" github.com/mattes/migrate%\" github.com/$(REPO_OWNER ) /migrate%g ' {}' \;
83
83
84
84
85
+ # make release V=0.0.0
86
+ release :
87
+ git tag v$(V )
88
+ @read -p " Press enter to confirm and push to origin ..." && git push origin v$(V )
89
+
90
+
85
91
define external_deps
86
92
@echo -- $(1 )
87
93
@go list -f '{{join .Deps "\n"}}' $(1 ) | grep -v github.com/$(REPO_OWNER ) /migrate | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
90
96
91
97
92
98
.PHONY : build-cli clean test-short test test-with-flags deps html-coverage \
93
- restore-import-paths rewrite-import-paths list-external-deps
99
+ restore-import-paths rewrite-import-paths list-external-deps release
94
100
95
101
SHELL = /bin/bash
96
102
RAND = $(shell echo $$RANDOM)
You can’t perform that action at this time.
0 commit comments