milestone 2 complete
This commit is contained in:
38
Makefile
38
Makefile
@ -1,5 +1,5 @@
|
||||
# Makefile for Onyx
|
||||
.PHONY: build test clean install lint security ci
|
||||
.PHONY: build test clean install lint security ci integration
|
||||
|
||||
# Default target
|
||||
all: clean lint test build
|
||||
@ -12,10 +12,15 @@ build:
|
||||
@echo "Build complete: bin/onx, bin/onxd"
|
||||
|
||||
test:
|
||||
@echo "Running tests..."
|
||||
@echo "Running unit tests..."
|
||||
go test -v -race -coverprofile=coverage.out ./...
|
||||
@echo "Test coverage generated: coverage.out"
|
||||
|
||||
integration: build
|
||||
@echo "Running integration tests..."
|
||||
@mkdir -p test
|
||||
@./test/integration_test.sh
|
||||
|
||||
coverage: test
|
||||
@echo "Coverage report:"
|
||||
go tool cover -html=coverage.out -o coverage.html
|
||||
@ -87,17 +92,18 @@ build-all:
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " all - Clean, lint, test, and build"
|
||||
@echo " build - Build CLI and daemon for current platform"
|
||||
@echo " build-all - Cross-platform builds"
|
||||
@echo " test - Run tests with coverage"
|
||||
@echo " coverage - Generate HTML coverage report"
|
||||
@echo " lint - Run code linting"
|
||||
@echo " security - Run security scanning"
|
||||
@echo " ci - Run full CI pipeline"
|
||||
@echo " install - Install to PATH"
|
||||
@echo " clean - Clean build artifacts"
|
||||
@echo " fmt - Format code"
|
||||
@echo " mod-tidy - Tidy Go modules"
|
||||
@echo " dev-setup - Install development tools"
|
||||
@echo " help - Show this help message"
|
||||
@echo " all - Clean, lint, test, and build"
|
||||
@echo " build - Build CLI and daemon for current platform"
|
||||
@echo " build-all - Cross-platform builds"
|
||||
@echo " test - Run unit tests with coverage"
|
||||
@echo " integration - Run end-to-end integration tests"
|
||||
@echo " coverage - Generate HTML coverage report"
|
||||
@echo " lint - Run code linting"
|
||||
@echo " security - Run security scanning"
|
||||
@echo " ci - Run full CI pipeline"
|
||||
@echo " install - Install to PATH"
|
||||
@echo " clean - Clean build artifacts"
|
||||
@echo " fmt - Format code"
|
||||
@echo " mod-tidy - Tidy Go modules"
|
||||
@echo " dev-setup - Install development tools"
|
||||
@echo " help - Show this help message"
|
||||
|
Reference in New Issue
Block a user