-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (37 loc) · 731 Bytes
/
Makefile
File metadata and controls
43 lines (37 loc) · 731 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
37
38
39
40
41
42
43
.PHONY: help
# help:
# Print this help message
help:
@grep -o '^\#.*' Makefile | cut -d" " -f2-
.PHONY: fmt
# fmt:
# Format go code
fmt:
goimports -local github.com/flume -w ./
.PHONY: lint
# lint:
# lint the code
lint:
golangci-lint run
golangci-lint run ./_examples/.
.PHONY: generate
# generate:
# Generate the examples code
generate:
(cd _examples && go generate ./... )
$(MAKE) fmt
.PHONY: upgrade-deps
# upgrade-deps:
# Upgrade the dependencies
upgrade-deps:
(cd _examples && go get -u -t ./... && go mod tidy)
(go get -u -t ./... && go mod tidy)
go work sync ./...
.PHONY: test
# test:
# Run the tests
test:
(cd ./_examples && go test ./.)
tag:
@echo "creating tag"
bash ./scripts/tag.sh