-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
41 lines (32 loc) · 735 Bytes
/
Rakefile
File metadata and controls
41 lines (32 loc) · 735 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
38
39
40
41
# frozen_string_literal: true
desc 'Run RSpec tests'
task :spec do
sh 'bundle exec rspec'
end
desc 'Run RuboCop'
task :rubocop do
sh 'bundle exec rubocop'
end
desc 'Run all linting and tests'
task test: [:rubocop, :spec]
desc 'Generate YARD documentation'
task :docs do
sh 'bundle exec yard doc'
end
desc 'Clean up generated files'
task :clean do
sh 'rm -rf coverage/ doc/ .yardoc/'
end
desc 'Build the gem'
task :build do
sh 'gem build kapso-client-ruby.gemspec'
end
desc 'Install the gem locally'
task install: :build do
sh 'gem install kapso-client-ruby-*.gem'
end
desc 'Release the gem'
task release: [:clean, :test, :build] do
puts 'Run `gem push kapso-client-ruby-*.gem` to release'
end
task default: :test