-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (49 loc) · 1.64 KB
/
Makefile
File metadata and controls
68 lines (49 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.PHONY: help install test test-verbose coverage lint format console clean ci setup
# Default target
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
setup: ## Initial setup - install dependencies
bundle install
install: ## Install dependencies
bundle install
test: ## Run all tests
bundle exec rspec
test-verbose: ## Run tests with verbose output
bundle exec rspec --format documentation
coverage: ## Run tests with coverage report
bundle exec rake coverage
lint: ## Run linting (RuboCop)
bundle exec rubocop
format: ## Auto-fix linting issues
bundle exec rubocop -a
console: ## Start interactive console
bundle exec rake console
clean: ## Clean up generated files
rm -rf coverage/
rm -f .rspec_status
ci: ## Run CI pipeline (tests + linting)
bundle exec rake ci
build: ## Build the gem
bundle exec rake build
release: ## Release a patch version (0.1.4 -> 0.1.5)
ruby release.rb patch
release-minor: ## Release a minor version (0.1.4 -> 0.2.0)
ruby release.rb minor
release-major: ## Release a major version (0.1.4 -> 1.0.0)
ruby release.rb major
release-patch: ## Alias for release (patch version)
ruby release.rb patch
yard: ## Generate documentation
bundle exec yard
server: ## Start YARD documentation server
bundle exec yard server
# Development shortcuts
t: test ## Shortcut for test
l: lint ## Shortcut for lint
c: console ## Shortcut for console
r: release ## Shortcut for release (patch)
rm: release-minor ## Shortcut for release-minor
rM: release-major ## Shortcut for release-major