30 lines
614 B
Makefile
30 lines
614 B
Makefile
.PHONY: dev test build web-install web-build compose-up compose-down integration-smoke loadtest
|
|
|
|
dev:
|
|
go run ./cmd/server
|
|
|
|
test:
|
|
GOCACHE=/tmp/configcenter-go-cache go test ./...
|
|
|
|
build:
|
|
mkdir -p bin
|
|
GOCACHE=/tmp/configcenter-go-cache go build -buildvcs=false -trimpath -o bin/configcenter ./cmd/server
|
|
|
|
web-install:
|
|
npm --prefix web install
|
|
|
|
web-build:
|
|
npm --prefix web run build
|
|
|
|
compose-up:
|
|
docker compose up --build
|
|
|
|
compose-down:
|
|
docker compose down
|
|
|
|
integration-smoke:
|
|
sh scripts/integration-smoke.sh
|
|
|
|
loadtest:
|
|
GOCACHE=/tmp/configcenter-go-cache go run ./cmd/loadtest -duration=30s -concurrency=32
|