forked from Sergyenko/right_support
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
43 lines (37 loc) · 1.14 KB
/
Rakefile
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
# -*-ruby-*-
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/clean'
require 'spec/rake/spectask'
require 'cucumber/rake/task'
desc "Run unit tests"
task :default => :spec
desc "Run unit tests"
Spec::Rake::SpecTask.new do |t|
t.spec_files = Dir['**/*_spec.rb']
t.spec_opts = lambda do
IO.readlines(File.join(File.dirname(__FILE__), 'spec', 'spec.opts')).map {|l| l.chomp.split " "}.flatten
end
end
desc "Run functional tests"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = %w{--color --format pretty}
end
desc 'Generate documentation for the rightscale_foundation gem.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'RightSupport'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.exclude('features/**/*')
rdoc.rdoc_files.exclude('spec/**/*')
end
desc "Build rightscale_foundation gem"
Rake::GemPackageTask.new(Gem::Specification.load("right_support.gemspec")) do |package|
package.need_zip = true
package.need_tar = true
end
CLEAN.include('pkg')