-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 961 Bytes
/
Makefile
File metadata and controls
48 lines (33 loc) · 961 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
44
45
46
47
48
.PHONY: deps test test-race fmt lint
define DEPRECATION_WARNING
$(warning DEPRECATED: This Makefile is deprecated. Please use https://taskfile.dev instead.)
endef
# Display deprecation warning for all targets
$(eval $(DEPRECATION_WARNING))
GOMAXPROCS ?= 1
build:
@go build ./cmd/benthos
build-wasm:
@GOOS=js GOARCH=wasm go build -o benthos.wasm ./cmd/benthos
export GOBIN ?= $(CURDIR)/bin
export PATH := $(GOBIN):$(PATH)
include .versions
install-tools:
@go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v$(GOLANGCI_LINT_VERSION)
install:
@go install ./cmd/benthos
deps:
@go mod tidy
fmt:
@golangci-lint fmt cmd/... internal/... public/...
@go mod tidy
lint:
@golangci-lint run cmd/... internal/... public/...
test:
@go test -timeout 3m ./...
@go run ./cmd/benthos template lint $(TEMPLATE_FILES)
@go run ./cmd/benthos test ./config/test/...
test-race:
@go test -timeout 3m -race ./...
generate:
@go generate ./...