-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
48 lines (39 loc) · 1.24 KB
/
rakefile.rb
File metadata and controls
48 lines (39 loc) · 1.24 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
require 'rubygems'
require 'albacore'
company_name = 'Fyhr v/Jesper Fyhr Knudsen'
product_name = 'BlankSolution'
copyright = company_name + ' (c) 2013'
solution_path = product_name + '.sln'
unit_tests = []
itegraion_tests = []
assemblyinfo_path = nil
packaged_dll = product_name + '.dll'
desc 'performs a clean build'
task :default => [:package]
task :clean do
puts 'clean'
end
assemblyinfo :assemblyinfo => [:clean] do |asm|
asm.company_name = company_name
asm.product_name = product_name
asm.copyright = copyright
asm.output_file = assemblyinfo_path
end
msbuild :compile => [:assemblyinfo] do |msb|
msb.properties :configuration => :Debug
msb.targets :build
msb.solution = solution_path
end
nunit :unittests => [:compile] do |nunit|
nunit.path_to_command = 'tools/NUnit-2.6.0.12051/bin/nunit-console.exe'
nunit.assemblies = unit_tests
end
nunit :integrationtests => [:unittests] do |nunit|
nunit.path_to_command = 'tools/NUnit-2.6.0.12051/bin/nunit-console.exe'
nunit.assemblies = itegraion_tests
end
ilmerge :package => [:unittests] do |cfg|
cfg.assemblies 'build/assembly1.dll', 'build/assembly2.dll'
cfg.command = 'tools/ILMerge/ILMerge.exe'
cfg.output = 'deploy/' + packaged_dll
end