-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
26 lines (19 loc) · 1.12 KB
/
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
export GO111MODULE=on
all: test install
build:
go build ./cmd/funnel
install:
go install ./cmd/funnel
lint:
gofmt -l -s -w . && go vet -all ./... && golint -set_exit_status=1 ./...
test:
go test -race -v -coverprofile=coverage.txt -covermode=atomic
bench:
go test -run=XXX -bench=Processor -benchmem
release:
GOOS=darwin GOARCH=amd64 go build -o funnel_darwin-amd64 -ldflags "-s -w" ./cmd/funnel
GOOS=darwin GOARCH=amd64 go build -tags "disableelasticsearch disableinfluxdb disablekafka disableredis disables3 disablenats" -o funnel_minimal_darwin-amd64 -ldflags "-s -w" ./cmd/funnel
GOOS=linux GOARCH=arm64 go build -o funnel_linux-arm64 -ldflags "-s -w" ./cmd/funnel
GOOS=linux GOARCH=arm64 go build -tags "disableelasticsearch disableinfluxdb disablekafka disableredis disables3 disablenats" -o funnel_minimal_linux-arm64 -ldflags "-s -w" ./cmd/funnel
GOOS=linux GOARCH=amd64 go build -o funnel_linux-amd64 -ldflags "-s -w" ./cmd/funnel
GOOS=linux GOARCH=amd64 go build -tags "disableelasticsearch disableinfluxdb disablekafka disableredis disables3 disablenats" -o funnel_minimal_linux-amd64 -ldflags "-s -w" ./cmd/funnel