-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathRakefile
More file actions
30 lines (26 loc) · 743 Bytes
/
Copy pathRakefile
File metadata and controls
30 lines (26 loc) · 743 Bytes
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
require "rubygems"
require "bundler"
Bundler.setup
require 'rake'
require 'rdoc/task'
require 'rspec/core/rake_task'
desc "Default Task"
task :default => [ :spec ]
# run all rspecs
desc "Run all rspec files"
RSpec::Core::RakeTask.new("spec") do |t|
t.rspec_opts = ["--color", "--format progress"]
t.ruby_opts = "-w"
end
# Genereate the RDoc documentation
desc "Create documentation"
RDoc::Task.new do |rdoc|
rdoc.title = "em-ftpd"
rdoc.rdoc_dir = (ENV['CC_BUILD_ARTIFACTS'] || 'doc') + '/rdoc'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('TODO')
rdoc.rdoc_files.include('CHANGELOG')
rdoc.rdoc_files.include('MIT-LICENSE')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.options << "--inline-source"
end