Sha256: 9486b56b3670c35a058588b59bfc9a15de910b7a618977631968ed50c25c8f91

Contents?: true

Size: 914 Bytes

Versions: 1

Compression:

Stored size: 914 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
RuboCop::RakeTask.new

RSpec::Core::RakeTask.new(:spec)

Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
  exempt_tags = ''
  exempt_tags << '--tags ~@nojava ' if RUBY_PLATFORM == 'java'
  t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
end

require 'rake/clean'

task test: %w[rubocop spec cucumber]

begin
  require 'cane/rake_task'

  desc 'Run cane to check quality metrics'
  Cane::RakeTask.new(:quality) do |cane|
    cane.no_style = true
    cane.no_doc = true
    cane.abc_glob = 'lib/middleman-blog-similar/**/*.rb'
  end
rescue LoadError
  warn 'cane not available, quality task not provided.'
end

desc 'Build HTML documentation'
task :doc do
  sh 'bundle exec yard'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-blog-similar-2.0.1 Rakefile