forked from brittandeyoung/ckia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
31 lines (22 loc) · 808 Bytes
/
GNUmakefile
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
GO_VER ?= go
default: build
build:
$(GO_VER) install
fmt:
@echo "==> Fixing source code with gofmt..."
gofmt -w -s .
test:
@echo "==> Running Unit Tests..."
go test ./... -race -covermode=atomic -coverprofile=coverage.out
pr: test build
changelog-release:
pwsh -noprofile -command 'Update-Changelog -ReleaseVersion $(RELEASE_VERSION) -LinkMode Automatic -LinkPattern @{ FirstRelease = "https://github.com/brittandeyoung/ckia/tree/v\{CUR\}"; NormalRelease = "https://github.com/brittandeyoung/ckia/compare/v\{PREV\}..v\{CUR\}"; Unreleased = "https://github.com/brittandeyoung/ckia/compare/v\{CUR\}..HEAD"}'
changelog-add:
pwsh -noprofile -command 'Add-ChangelogData -Type "$(TYPE)" -Data "$(DATA)"'
.PHONY: \
build \
changelog-release \
changelog-add \
fmt \
pr \
test \