Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (43 loc) · 1.52 KB
/
Copy pathMakefile
File metadata and controls
63 lines (43 loc) · 1.52 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
# Makefile for dagger_ruby gem
.PHONY: help install test lint validate release publish clean
help: ## Show this help message
@echo "dagger_ruby gem development commands:"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}'
install: ## Install dependencies
bundle install
test: ## Run test suite
bundle exec rake test
lint: ## Run linting
bundle exec rubocop
lint-fix: ## Run linting with auto-fix
bundle exec rubocop --auto-correct
validate: ## Validate gem for publishing
ruby scripts/validate.rb
release: ## Prepare release (update changelog, create tag)
ruby scripts/release.rb
publish: ## Publish gem to RubyGems
ruby scripts/publish.rb
build: ## Build gem file
gem build dagger_ruby.gemspec
clean: ## Clean build artifacts
rm -f *.gem
install-local: build ## Install gem locally
gem install dagger_ruby-*.gem
uninstall-local: ## Uninstall local gem
gem uninstall dagger_ruby
check-deps: ## Check for dependency issues
bundle check
outdated: ## Check for outdated dependencies
bundle outdated
coverage: ## Generate test coverage report
bundle exec rake test
open coverage/index.html
console: ## Start interactive console
bundle exec irb -r ./lib/dagger_ruby
examples: ## Run example scripts
@echo "Available examples:"
@echo " bundle exec ruby examples/cowsay.rb 'Hello!'"
@echo " bundle exec ruby examples/ruby_app_build.rb"
ci: install lint test ## Run CI pipeline locally
all: clean install lint test validate ## Run all checks