Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (37 sloc) 946 Bytes
require 'rubygems'
gem 'rspec'
gem 'reek'
require 'rspec'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'reek/rake/task'
task :default => :spec
namespace :gem do
desc "Builds the gem"
task :build do
system "gem build *.gemspec && mkdir -p pkg/ && mv *.gem pkg/"
end
desc "Builds and installs the gem"
task :install => :build do
system "gem install pkg/"
end
end
Reek::Rake::Task.new do |task|
task.fail_on_error = true
end
desc "Generate the rdoc"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.add [ "README.rdoc", "lib/**/*.rb" ]
rdoc.main = "README.rdoc"
rdoc.title = ""
end
desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new do |task|
task.pattern = "spec/gom/**/*_spec.rb"
end
namespace :spec do
desc "Run all integration specs in spec/acceptance directory"
RSpec::Core::RakeTask.new(:acceptance) do |task|
task.pattern = "spec/acceptance/**/*_spec.rb"
end
end