mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-12-24 12:57:53 +08:00
30 lines
1.2 KiB
Makefile
30 lines
1.2 KiB
Makefile
run:
|
|
docker-compose up --build
|
|
|
|
build-local:
|
|
CGO_ENABLED=1 go build -buildmode=plugin -o ./bin/modules/module_set/module_set.so ./internal/volumes/modules/module_set/module_set.go && \
|
|
CGO_ENABLED=1 go build -buildmode=plugin -o ./bin/modules/module_get/module_get.so ./internal/volumes/modules/module_get/module_get.go && \
|
|
CGO_ENABLED=1 go build -o ./bin ./...
|
|
|
|
|
|
build-modules-test:
|
|
CGO_ENABLED=1 go build --race=$(RACE) -buildmode=plugin -o $(OUT)/modules/module_set/module_set.so ./internal/volumes/modules/module_set/module_set.go && \
|
|
CGO_ENABLED=1 go build --race=$(RACE) -buildmode=plugin -o $(OUT)/modules/module_get/module_get.so ./internal/volumes/modules/module_get/module_get.go
|
|
|
|
test:
|
|
env RACE=false OUT=internal/modules/admin/testdata make build-modules-test && \
|
|
env RACE=false OUT=echovault/testdata make build-modules-test && \
|
|
CGO_ENABLED=1 go test ./... -coverprofile coverage/coverage.out
|
|
|
|
test-race:
|
|
env RACE=true OUT=internal/modules/admin/testdata make build-modules-test && \
|
|
env RACE=true OUT=echovault/testdata make build-modules-test && \
|
|
CGO_ENABLED=1 go test ./... --race
|
|
|
|
test-win:
|
|
docker-compose -f windows_test_env/docker-compose.yaml up
|
|
|
|
cover:
|
|
go tool cover -html=./coverage/coverage.out
|
|
|