-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (24 loc) · 727 Bytes
/
Rakefile
File metadata and controls
31 lines (24 loc) · 727 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
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
desc 'run test, build gem and install gem'
task :ci => %w{spec gem:build gem:install}
namespace :gem do
desc 'build the batch_processor gem'
task :build do
print_heading 'Building batch_processor gem'
`gem build batch_processor.gemspec`
end
desc 'install batch_processor gem from local gem file'
task :install do
version = BatchProcessor::VERSION
print_heading "Installing batch_processor gem #{version}"
`gem install ./batch_processor-#{version}.gem`
end
end
def print_heading heading
30.times.each { print '=' }
puts
puts heading
end