Sha256: ad612a96aff519b58df33d86a17b50bbf6b619b84c826dfed22f0b49e153e5c5

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'cucumber/rake/task'
require 'rspec/core/rake_task'

require 'middleman-core/version'

Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
  exempt_tags = ["--tags ~@wip"]
  exempt_tags << "--tags ~@new " unless Middleman::VERSION.start_with?("3.1")
  exempt_tags << "--tags ~@old " unless Middleman::VERSION.start_with?("3.0")
  t.cucumber_opts = "--color #{exempt_tags.join(" ")} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
end

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

require 'rake/clean'

task :test => [:destroy_sass_cache, "cucumber", "spec"]

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

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-sprockets/**/*.rb"
  end
rescue LoadError
  # warn "cane not available, quality task not provided."
end

desc "Destroy the sass cache from fixtures in case it messes with results"
task :destroy_sass_cache do
  Dir["fixtures/*/.sass-cache"].each do |dir|
    rm_rf dir
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
middleman-sprockets-3.3.10 Rakefile
middleman-sprockets-3.3.9 Rakefile
middleman-sprockets-3.3.8 Rakefile
middleman-sprockets-3.3.7 Rakefile
middleman-sprockets-cj-3.3.6 Rakefile
middleman-sprockets-3.3.6 Rakefile