-
Notifications
You must be signed in to change notification settings - Fork 521
/
Rakefile
52 lines (43 loc) · 1.14 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
require 'bundler'
include Rake::DSL
Bundler::GemHelper.install_tasks
task :build => ['prebuild']
task :spec => ['prebuild']
task :default => ['prebuild', 'spec', 'test:conformance']
task :test => :spec
directory "config"
directory "lib/assets"
desc "Prebuild task setup"
task :prebuild => ["config", "lib/assets"] do
FileUtils.cp_r '../config/.', 'config', :verbose => true
FileUtils.cp_r '../conformance/tld_lib.yml', 'lib/assets', :verbose => true
end
require 'rubygems'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
namespace :test do
namespace :conformance do
desc "Run conformance test suite"
task :run => ['prebuild'] do
ruby "test/conformance_test.rb"
end
end
desc "Run conformance test suite"
task :conformance => ['conformance:run'] do
end
end
require 'rdoc/task'
namespace :doc do
RDoc::Task.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_dir = 'doc'
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
end
desc "Run cruise control build"
task :cruise => [:spec, 'test:conformance'] do
end
desc "Clean build"
task :clean do
rm_rf ["config", "pkg", "lib/assets", "Gemfile.lock"]
end