forked from htdebeer/pandocomatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
31 lines (26 loc) · 811 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
require "rake/testtask"
require "yard"
Rake::TestTask.new do |t|
t.libs << "lib"
t.libs << "lib/pandocomatic"
t.test_files = FileList["test/test_helper.rb", "test/unit/*.rb", "test/spec/*.rb"]
t.warning = false
t.verbose = true
end
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb']
end
task :generate_docs do
sh %{
cd documentation;
../test/pandocomatic.rb --data-dir data-dir --config config.yaml --input manual.md --output ../index.md;
../test/pandocomatic.rb --data-dir data-dir --config config.yaml --input README.md --output ../README.md
}
end
task :build do
Rake::Task['test'].execute
Rake::Task['yard'].execute
sh "gem build pandocomatic.gemspec; mv *.gem releases"
Rake::Task["generate_docs"].execute
end
task :default => :test