mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-15 05:07:30 +08:00
refine whatsapp bridge defaults and webui polish
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: all build build-linux-slim build-all build-webui package-all install install-win uninstall clean help test install-bootstrap-docs sync-embed-workspace sync-embed-workspace-base sync-embed-webui cleanup-embed-workspace test-only clean-test-artifacts dev
|
||||
.PHONY: all build build-linux-slim build-all build-webui package-all install install-win uninstall clean help test test-docker install-bootstrap-docs sync-embed-workspace sync-embed-workspace-base sync-embed-webui cleanup-embed-workspace test-only clean-test-artifacts dev
|
||||
|
||||
# Build variables
|
||||
BINARY_NAME=clawgo
|
||||
@@ -324,12 +324,15 @@ clean:
|
||||
@rm -rf $(BUILD_DIR)
|
||||
@echo "Clean complete"
|
||||
|
||||
## test-only: Run tests without leaving build artifacts (cleans embed workspace and test cache)
|
||||
test-only: sync-embed-workspace
|
||||
## test: Run Go tests without leaving build artifacts (cleans embed workspace and test cache)
|
||||
test: sync-embed-workspace
|
||||
@echo "Running tests..."
|
||||
@set -e; trap '$(MAKE) cleanup-embed-workspace clean-test-artifacts' EXIT; \
|
||||
$(GO) test ./...
|
||||
|
||||
## test-only: Backward-compatible alias for Go tests
|
||||
test-only: test
|
||||
|
||||
## clean-test-artifacts: Remove test caches/artifacts generated by go test
|
||||
clean-test-artifacts:
|
||||
@$(GO) clean -testcache
|
||||
@@ -364,8 +367,8 @@ dev: sync-embed-workspace
|
||||
echo " Args: $(DEV_ARGS)"; \
|
||||
CLAWGO_CONFIG="$(DEV_CONFIG)" $(GO) run $(GOFLAGS) ./$(CMD_DIR) $(DEV_ARGS)
|
||||
|
||||
## test: Build and compile-check in Docker (Dockerfile.test)
|
||||
test: sync-embed-workspace
|
||||
## test-docker: Build and compile-check in Docker (Dockerfile.test)
|
||||
test-docker: sync-embed-workspace
|
||||
@echo "Running Docker compile test..."
|
||||
@set -e; trap '$(MAKE) cleanup-embed-workspace' EXIT; \
|
||||
docker build -f Dockerfile.test -t clawgo:test .
|
||||
|
||||
Reference in New Issue
Block a user