mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-15 03:57:30 +08:00
tools: align parallel execution with runtime limits
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: all build build-all install uninstall clean help test install-bootstrap-docs sync-embed-workspace cleanup-embed-workspace
|
||||
.PHONY: all build build-all install uninstall clean help test install-bootstrap-docs sync-embed-workspace cleanup-embed-workspace test-only clean-test-artifacts
|
||||
|
||||
# Build variables
|
||||
BINARY_NAME=clawgo
|
||||
@@ -142,9 +142,15 @@ clean:
|
||||
@rm -rf $(BUILD_DIR)
|
||||
@echo "Clean complete"
|
||||
|
||||
## fmt: Format Go code
|
||||
fmt:
|
||||
@$(GO) fmt ./...
|
||||
## test-only: Run tests without leaving build artifacts (cleans embed workspace and test cache)
|
||||
test-only: sync-embed-workspace
|
||||
@echo "Running tests..."
|
||||
@set -e; trap '$(MAKE) cleanup-embed-workspace clean-test-artifacts' EXIT; \
|
||||
$(GO) test ./...
|
||||
|
||||
## clean-test-artifacts: Remove test caches/artifacts generated by go test
|
||||
clean-test-artifacts:
|
||||
@$(GO) clean -testcache
|
||||
|
||||
## deps: Update dependencies
|
||||
deps:
|
||||
|
||||
Reference in New Issue
Block a user