forked from middleman/middleman-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (28 loc) · 918 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'bundler'
Bundler::GemHelper.install_tasks
require 'cucumber/rake/task'
require 'middleman-core'
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
ENV["TEST"] = "true"
exempt_tags = ""
exempt_tags << "--tags ~@nojava " if RUBY_PLATFORM == "java"
exempt_tags << "--tags ~@three_one " unless ::Middleman::VERSION.match(/^3\.1\./)
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
end
require 'rake/clean'
task :test => ["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/**/*.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