2010-12-24 02:18:15 +01:00
|
|
|
require 'bundler'
|
2011-09-09 20:14:34 +02:00
|
|
|
Bundler::GemHelper.install_tasks :name => ENV["NAME"] || "middleman"
|
2009-10-23 02:25:15 +02:00
|
|
|
|
2010-12-24 02:18:15 +01:00
|
|
|
require 'cucumber/rake/task'
|
2009-10-23 02:25:15 +02:00
|
|
|
|
2009-11-23 00:37:11 +01:00
|
|
|
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
|
2011-07-13 09:38:04 +02:00
|
|
|
t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
|
2009-10-23 02:25:15 +02:00
|
|
|
end
|
|
|
|
|
2011-02-13 06:02:00 +01:00
|
|
|
require 'rake/clean'
|
|
|
|
|
2011-11-30 08:43:01 +01:00
|
|
|
task :test => ["cucumber"]
|
|
|
|
|
2011-12-01 05:55:44 +01:00
|
|
|
desc "Build HTML documentation"
|
2011-11-30 08:43:01 +01:00
|
|
|
task :doc do
|
2011-12-01 05:55:44 +01:00
|
|
|
sh 'bundle exec yard'
|
|
|
|
end
|