-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
38 lines (27 loc) · 867 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
GO ?= GO111MODULE=on go
INFO_COLOR=\033[1;34m
RESET=\033[0m
BOLD=\033[1m
depsdev: ## Installing dependencies for development
$(GO) get -u golang.org/x/lint/golint
$(GO) get -u github.com/git-chglog/git-chglog/cmd/git-chglog
changelog:
git-chglog -o CHANGELOG.md
test: ## Run test
@echo "$(INFO_COLOR)==> $(RESET)$(BOLD)Testing$(RESET)"
$(GO) test -v -timeout=30s -parallel=4
$(GO) test -race
lint: ## Exec golint
@echo "$(INFO_COLOR)==> $(RESET)$(BOLD)Linting$(RESET)"
cd $(PACKAGE_DIR) && golint -min_confidence 1.1 -set_exit_status
ci: depsdev test lint
release_major: releasedeps
git semv major --bump
release_minor: releasedeps
git semv minor --bump
release_patch: releasedeps
git semv patch --bump
releasedeps: git-semv
git-semv:
which git-semv > /dev/null || brew tap linyows/git-semv
which git-semv > /dev/null || brew install git-semv