-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrakefile.rb
39 lines (28 loc) · 888 Bytes
/
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
#rakefile.rb
require 'rake'
require 'albacore'
task :default => [:full]
task :full => [:clean,:assemblyInfo,:build,:specifications]
task :clean do
FileUtils.rm_rf 'build'
FileUtils.rm_rf 'publish'
end
msbuild :build do |msb|
msb.properties :configuration => :AutomatedRelease
msb.solution = "Source/BuildWithRuby.sln"
end
mspec :specifications do |mspec|
mspec.command = "Lib/mspec/mspec.exe"
mspec.assemblies = "Build/BuildWithRuby.Specs.dll"
mspec.html_output = "Report/"
end
desc "Assembly Version Info Generator"
assemblyinfo :assemblyInfo do |asm|
asm.output_file ="Source/ProjectVersion.cs"
asm.title = "Build With Ruby Example"
asm.company_name = "42 Productions"
asm.product_name = "Build With Ruby Example"
asm.version = "0.1.0.0"
asm.file_version = "0.1.0.0"
asm.copyright = "Copyright (c)2011 42 Productions"
end