forked from dougfales/gpx
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (27 loc) · 662 Bytes
/
Rakefile
File metadata and controls
31 lines (27 loc) · 662 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
31
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rdoc/task'
desc "Default Task"
task :default => [ :test ]
namespace :ci do
task :build do
puts "Creating tests/output directory..."
FileUtils.mkdir_p "tests/output"
Rake::Task[:test].invoke
end
end
# Run the unit tests
desc "Run all unit tests"
Rake::TestTask.new("test") { |t|
t.libs << "lib"
t.pattern = 'tests/*_test.rb'
t.verbose = true
}
# Genereate the RDoc documentation
desc "Create documentation"
Rake::RDocTask.new("doc") { |rdoc|
rdoc.title = "Ruby GPX API"
rdoc.rdoc_dir = 'html'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
}