-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathRulebook
More file actions
48 lines (36 loc) · 762 Bytes
/
Rulebook
File metadata and controls
48 lines (36 loc) · 762 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env ruby
# global ignore
ignore 'pkg', 'doc', 'site', 'log'
##
# Default
#
ruleset :default => [:index, :manifest, :demo]
ruleset :manifest do
desc "update manifest"
fact :need_manifest? do
! system 'mast --quiet --verify'
end
rule :need_manifest? do
sh 'mast -u'
end
end
ruleset :test do
desc "run tests"
rule 'test/test_*.rb' do |files|
sh 'rubytest -Ilib ' + files.join(' ')
#require 'rubytest'
#Test::Runner.run do |run|
# run.loadpath << 'lib'
# run.files << files
#end
end
rule 'lib/**/*.rb' do |files|
sh 'rubytest -Ilib test/test_*.rb', 'coverage'=>'true'
end
end
ruleset :index do
desc "update .index file"
rule 'INDEX.yml' do
shell "index -u INDEX.yml"
end
end