-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
58 lines (38 loc) · 898 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
DIR=$(PWD)
GO_TEST=cd ./sh && bash ./go.test.sh
GO_TEST_COVERAGE=cd ./sh && bash ./go.test.coverage.sh
GO_TEST_WITH_REAL_DB=--tags=with_real_db
test:
$(GO_TEST)
test.with_real_db:
$(GO_TEST) $(GO_TEST_WITH_REAL_DB)
test.coverage:
$(GO_TEST_COVERAGE)
test.coverage.with_real_db:
$(GO_TEST_COVERAGE) $(GO_TEST_WITH_REAL_DB)
fmt:
cd sh && sh ./go.fmt.sh
lint:
cd sh && sh ./lint.sh
lint.verbose:
cd sh && sh ./lint.sh -v
lint.cache.clean:
golangci-lint cache clean
generate:
go generate ./...
go.mod.tidy:
cd sh && sh ./go.mod.tidy.sh
go.mod.vendor:
cd sh && sh ./go.mod.vendor.sh
go.work.sync:
go work sync
tag: git.tag tag.pkg
tag.pkg:
cd sh && sh ./tag.pkg.sh $(version)
git.tag: git.tag.create git.tag.push
# 1.0, "v2." added automatically
# make git.tag version="0.0-rc1"
git.tag.create:
cd sh && sh ./git.tag.sh $(version)
git.tag.push:
git push origin --tags