forked from restful-routing/restful-routing
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
27 lines (20 loc) · 745 Bytes
/
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
require 'rubygems'
PROJECT = 'RestfulRouting'
task :default => [:clean, :compile, :test]
desc 'removes build files'
task :clean do
FileUtils.rm_rf("build")
end
desc 'compile'
task :compile => :clean do
msbuild_path = File.join(ENV['windir'].dup, 'Microsoft.NET', 'Framework', 'v3.5', 'msbuild.exe')
sh "#{msbuild_path} src\\#{PROJECT}.sln /maxcpucount /v:m /property:BuildInParallel=false /property:Configuration=release /property:Architecture=x86 /t: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'
task :test do
sh "tools\\nunit\\nunit-console.exe src\\#{PROJECT}.Tests\\bin\\Release\\#{PROJECT}.Tests.dll"
end