Files
AIRouter/Makefile
T
freedakgmail 93a469061d
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / build (push) Has been cancelled
CI / security-scan (push) Has been cancelled
初始提交:边缘AI算力机统一AI通讯层
2026-08-03 07:44:05 +08:00

37 lines
715 B
Makefile

.PHONY: build run test test-unit test-integration lint docker clean
BINARY=edgeai-gateway
VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
LDFLAGS=-ldflags "-X main.version=$(VERSION)"
build:
go build $(LDFLAGS) -o bin/$(BINARY) ./cmd/gateway
run:
go run ./cmd/gateway --config configs/config.yaml
test:
go test ./... -v -count=1
test-unit:
go test ./internal/... -v -count=1
test-integration:
go test ./test/integration/... -v -count=1
test-coverage:
go test ./... -coverprofile=coverage.out -count=1
go tool cover -func=coverage.out
lint:
golangci-lint run ./...
docker:
docker build -t $(BINARY):$(VERSION) .
clean:
rm -rf bin/ coverage.out
tidy:
go mod tidy