-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
35 lines (27 loc) · 932 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
# --- Required ----------------------------------------------------------------
export PATH := $(PWD)/bin:$(PATH) # ./bin to $PATH
export SHELL := bash # Default Shell
build:
@ go build -trimpath -o bin/ireturn ./cmd/ireturn/
tests:
go test -v -count=1 -race \
-failfast \
-parallel=2 \
-timeout=1m \
-covermode=atomic \
-coverprofile=coverage.cov ./...
lints:
golangci-lint run
cover:
go tool cover -html=coverage.cov
generate:
scripts/generate-std.sh
install:
go install -trimpath -v -ldflags="-w -s" ./cmd/ireturn/
bin/goreleaser:
@curl -Ls https://github.com/goreleaser/goreleaser/releases/download/v1.18.2/goreleaser_Darwin_all.tar.gz | tar -zOxf - goreleaser > ./bin/goreleaser
chmod 0755 ./bin/goreleaser
test-release: bin/goreleaser
goreleaser release --help
goreleaser release -f .goreleaser.yaml \
--skip-validate --skip-publish --clean