forked from joemiller/vault-token-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 599 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 599 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
34
35
36
deps:
@go get
lint:
@golangci-lint run -v --timeout=3m
@if command -v goreleaser >/dev/null; then \
goreleaser check; \
else \
echo "goreleaser not installed, skiping goreleaser linting"; \
fi
test:
@go test -coverprofile=cover.out -v ./...
cov:
@go tool cover -html=cover.out
build:
@go build .
release:
@goreleaser $(GORELEASER_ARGS)
snapshot: GORELEASER_ARGS= --rm-dist --snapshot
snapshot: release
todo:
@grep \
--exclude-dir=vendor \
--exclude-dir=dist \
--exclude-dir=Attic \
--text \
--color \
-nRo -E 'TODO:.*' .
.PHONY: build build-linux test snapshot todo