This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathRakefile.rb
53 lines (43 loc) · 1.76 KB
/
Rakefile.rb
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
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'Pathname'
require 'rake'
require 'rake/clean'
Hoe.spec 'rake-dotnet' do
developer('Peter Mounce', '[email protected]')
self.summary = 'A collection of custom-tasks to make a .NET project easily buildable via command-line automation'
self.description = 'Removing angle brackets from a .NET build-guy\'s life one at a time...'
#self.homepage = 'http://github.com/petemounce/rake-dotnet'
self.version = '0.2.1'
self.extra_deps << ['rake', '>= 0.8.3']
self.extra_deps << ['systemu', '>= 1.2.0']
self.extra_dev_deps << ['rspec', '>= 1.2.9']
self.extra_dev_deps << ['rcov', '>= 0.8.1.2.0']
self.extra_dev_deps << ['hoe', '>= 2.4.0']
self.extra_dev_deps << ['diff-lcs', '>= 1.1.2']
self.extra_dev_deps << ['syntax', '>= 1.0.0']
end
task :uninstall_gem do
sh "gem uninstall rake-dotnet"
end
require 'spec/rake/spectask'
desc 'Run all examples and report'
Spec::Rake::SpecTask.new('examples_with_report') do |t|
t.spec_files = File.join('spec', 'rake_dotnet_spec.rb')
t.spec_opts = ["--format", "html:doc/examples.html", "--format", "progress", "--diff", '--colour']
t.fail_on_error = true
end
desc "Run all specs with RCov"
Spec::Rake::SpecTask.new('examples_with_rcov') do |t|
t.spec_files = File.join('spec', 'rake_dotnet_spec.rb')
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
t.fail_on_error = true
end
file 'coverage/index.html' => [:examples_with_rcov]
file 'doc/examples.html' => [:examples_with_report]
task :package => [:examples_with_report, :examples_with_rcov]
task :ci => [:clobber, :examples_with_report, :examples_with_rcov, :package]
task :default => [:clobber, :examples_with_report, :examples_with_rcov, :package]
# vim: syntax=Ruby