-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 768 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 768 Bytes
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
PKG = github.com/tailor-platform/patterner
COMMIT = $(shell git rev-parse --short HEAD)
BUILD_LDFLAGS = "-s -w -X $(PKG)/version.Revision=$(COMMIT)"
default: test
ci: depsdev test
test:
go test ./... -coverprofile=coverage.out -covermode=count -count=1
fulltest:
env TEST_INTEGRATION=1 go test -v ./... -coverprofile=coverage.out -covermode=count -count=1
build:
go build -ldflags=$(BUILD_LDFLAGS) -trimpath
install:
go install -ldflags=$(BUILD_LDFLAGS) -trimpath
lint:
golangci-lint run ./...
depsdev:
go install github.com/Songmu/gocredits/cmd/gocredits@latest
prerelease_for_tagpr: depsdev
go mod download
gocredits -w .
git add CHANGELOG.md CREDITS go.mod go.sum
.PHONY: default ci test fulltest build install lint depsdev prerelease_for_tagpr