-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (29 loc) · 654 Bytes
/
Copy pathRakefile
File metadata and controls
37 lines (29 loc) · 654 Bytes
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
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task default: :spec
desc "Run RuboCop"
task :rubocop do
sh "rubocop"
end
desc "Generate documentation"
task :yard do
sh "yard doc"
end
desc "Run all checks"
task :check => [:rubocop, :spec]
desc "Run examples (public API only)"
task :examples do
sh "ruby examples/public_api_example.rb"
sh "ruby examples/error_handling_example.rb"
end
desc "Install gem locally"
task :install do
sh "gem build buda_api.gemspec"
sh "gem install buda_api-*.gem"
end
desc "Clean build artifacts"
task :clean do
sh "rm -f buda_api-*.gem"
sh "rm -rf doc/"
end