forked from restful-routing/restful-routing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
45 lines (37 loc) · 1.15 KB
/
Rakefile
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
require 'rubygems'
require 'albacore'
PROJECT = 'RestfulRouting'
task :default => [:clean, :compile, :test]
desc 'removes build files'
task :clean do
FileUtils.rm_rf("build")
end
desc 'generates assembly info'
assemblyinfo :assemblyinfo do |asm|
asm.version = "1.0.1"
asm.product_name = "RestfulRouting"
asm.title = "RestfulRouting"
asm.description = "RestfulRouting is a routing library for ASP.NET MVC based on the Rails 3 routing DSL."
asm.output_file = "src/RestfulRouting/Properties/AssemblyInfo.cs"
end
desc 'compile'
msbuild :compile => [:clean, :assemblyinfo] do |msb|
msb.solution = "src\\#{PROJECT}.sln"
msb.verbosity = 'minimal'
msb.properties = {
:configuration => :Release,
:BuildInParallel => :false,
:Architecture => 'x86'
}
msb.targets :Rebuild
FileUtils.mkdir_p 'build'
Dir.glob(File.join("src/#{PROJECT}/bin/Release", "*.{dll,pdb,xml,exe}")) do |file|
copy(file, 'build')
end
end
desc 'runs tests'
mspec :test do |mspec|
mspec.path_to_command = 'tools\\mspec\\mspec.exe'
mspec.assemblies "src\\#{PROJECT}.Tests\\bin\\Release\\#{PROJECT}.Tests.dll"
mspec.html_output = "src\\#{PROJECT}.Tests\\Reports\\specs.html"
end