File: Rakefile

package info (click to toggle)
vim-addon-manager 0.5.10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 312 kB
  • sloc: ruby: 970; makefile: 15; sh: 7
file content (26 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (3)
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