mirror of
https://github.com/logos-messaging/telemetry.git
synced 2026-01-02 14:13:05 +00:00
26 lines
518 B
Makefile
26 lines
518 B
Makefile
.PHONY: all build lint test
|
|
|
|
all: build
|
|
|
|
deps: lint-install
|
|
|
|
build:
|
|
go build -o build/server cmd/server/main.go
|
|
|
|
vendor:
|
|
go mod tidy
|
|
|
|
lint-install:
|
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
|
|
bash -s -- -b $(shell go env GOPATH)/bin v1.41.1
|
|
|
|
lint:
|
|
@echo "lint"
|
|
@golangci-lint --exclude=SA1019 run ./... --deadline=5m
|
|
|
|
test:
|
|
go test -v -failfast ./...
|
|
|
|
build:
|
|
go build -o ./build/server ./cmd/server/main.go
|
|
go build -o ./build/aggregator ./cmd/aggregator/main.go
|