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
|
desc 'run all the tests'
task :default => [:rspec, :cucumber]
desc 'run unit tests'
task :rspec do
ruby '-S rspec --color spec'
end
desc 'run acceptance tests'
task :cucumber do
ruby '-S cucumber --format progress'
end
html = FileList['doc/*.markdown'].gsub(/\.markdown$/, '.html')
desc 'build documentation'
task :doc => html
rule '.html' => ['.markdown', 'doc/template.html'] do |t|
sh %{pandoc --smart -f markdown --section-divs -t html5 --template=doc/template.html -o #{t.name} #{t.source}}
end
desc 'remove generated files'
task :clean do
rm_f html
end
|