forked from gdelugre/origami
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
37 lines (29 loc) · 753 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
# encoding: UTF-8
# Optionally install bundler tasks if present.
begin
require 'bundler'
Bundler.setup
Bundler::GemHelper.install_tasks
rescue LoadError
end
require 'rdoc/task'
require 'rake/testtask'
require 'rake/clean'
desc "Generate rdoc documentation"
Rake::RDocTask.new("rdoc") do |rdoc|
rdoc.rdoc_dir = "doc"
rdoc.title = "Origami"
rdoc.options << "-U" << "-N"
rdoc.options << "-m" << "Origami::PDF"
rdoc.rdoc_files.include("lib/origami/**/*.rb")
end
desc "Run the test suite"
Rake::TestTask.new do |t|
t.verbose = true
t.libs << "test"
t.test_files = [ "test/test_pdf.rb" ]
end
task :clean do
Rake::Cleaner.cleanup_files Dir['*.gem', 'doc', 'examples/**/*.pdf']
end
task :default => :test