forked from chorankates/rouster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
66 lines (53 loc) · 1.2 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
53
54
55
56
57
58
59
60
61
62
63
64
65
require sprintf('%s/%s', File.dirname(File.expand_path(__FILE__)), 'path_helper')
require 'rubygems'
require 'rake/testtask'
task :buildgem do
sh 'gem build rouster.gemspec'
end
task :default do
sh 'ruby test/basic.rb'
end
task :demo do
sh 'ruby examples/demo.rb'
end
task :doc do
sh 'rdoc --line-numbers lib/*'
end
task :examples do
Dir['examples/**/*.rb'].each do |example|
sh "ruby #{example}"
end
end
task :vdestroy do
sh 'vagrant destroy -f'
end
task :reek do
sh 'reek lib/**/*.rb'
end
Rake::TestTask.new(:test => :vdestroy) do |t|
t.libs << 'lib'
t.test_files = FileList['test/**/test_*.rb']
t.verbose = true
end
Rake::TestTask.new do |t|
t.name = 'unit'
t.libs << 'lib'
t.test_files = FileList['test/unit/**/test_*.rb']
t.verbose = true
end
Rake::TestTask.new(:functional => :vdestroy) do |t|
t.libs << 'lib'
t.test_files = FileList['test/functional/**/test_*.rb']
t.verbose = true
end
Rake::TestTask.new(:deltas => :vdestroy) do |t|
t.libs << 'lib'
t.test_files = FileList['test/functional/deltas/test_*.rb']
t.verbose = true
end
Rake::TestTask.new do |t|
t.name = 'puppet'
t.libs << 'lib'
t.test_files = FileList['test/puppet/test*.rb']
t.verbose = true
end