middleman-deploy/Rakefile

26 lines
553 B
Ruby
Raw Permalink Normal View History

2012-08-20 06:38:16 +02:00
require 'bundler'
2014-05-29 11:57:30 +02:00
Bundler.setup
2012-08-20 06:38:16 +02:00
Bundler::GemHelper.install_tasks
2012-08-22 19:54:13 +02:00
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
2014-05-29 11:57:30 +02:00
exempt_tags = ['--tags ~@wip']
t.cucumber_opts = "--color #{exempt_tags.join(' ')} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
2012-08-22 19:54:13 +02:00
end
2012-08-20 06:38:16 +02:00
2014-05-29 11:57:30 +02:00
begin
require 'yard'
YARD::Rake::YardocTask.new
rescue LoadError
end
2012-08-20 06:38:16 +02:00
2014-05-29 11:57:30 +02:00
begin
require 'rubocop/rake_task'
desc 'Run rubocop'
2014-11-21 18:00:23 +01:00
RuboCop::RakeTask.new(:rubocop)
2014-05-29 11:57:30 +02:00
rescue LoadError
end
2012-08-20 19:52:29 +02:00
2014-05-29 11:57:30 +02:00
task default: :cucumber
task test: :cucumber