forked from Sage/fudge
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFudgefile
More file actions
52 lines (41 loc) · 1.1 KB
/
Fudgefile
File metadata and controls
52 lines (41 loc) · 1.1 KB
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
task_group :spec do
task :rspec, :coverage => 100
end
task_group :docs do
task :yard, :coverage => 100
end
task_group :codestyle do
task :cane, :max_width => 150
end
task_group :duplication do
task :flay, :exclude => '^\.\/spec\/', :max => 42
end
task_group :complexity do
task :flog, :exclude => '^\.\/spec\/', :max => 13, :average => 4.1, :methods => true
end
task_group :shout_about_success do
on_success do
task :shell, 'echo "WOOHOO BUILD PASSED"'
end
end
task_group :shout_about_failure do
on_failure do
task :shell, 'echo "NOOOOOOOOOH BUILD FAILED"'
end
end
task_group :shout_about_success_and_failure do
task_group :shout_about_success
task_group :shout_about_failure
end
build :default, :about => 'Runs unit tests, and checks test coverage, documentation coverage, and code style and complexity' do
task_group :spec
task_group :docs
task_group :codestyle
task_group :complexity
task_group :duplication
task_group :shout_about_success_and_failure
end
build :nodoc, :about => 'Runs unit tests' do
task_group :spec
task_group :shout_about_success_and_failure
end