-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
22 lines (19 loc) · 733 Bytes
/
rakefile.rb
File metadata and controls
22 lines (19 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'albacore'
require 'yaml'
outdir = File.expand_path("./output/")
desc "Build the Configuration assembly"
task :default => [:buildRelease]
msbuild :buildRelease do |msb|
msb.properties = {:configuration => :Release, :TrackFileAccess => false}
msb.targets :clean, :Build
msb.solution = "./source/ConfigInCode.sln"
end
nunit :unit_tests => :buildRelease do |nunit|
Dir.mkdir outdir unless Dir.exists?(outdir)
nunitRunner = Dir.glob("source/packages/NUnit.Runners.*/tools/nunit-console.exe")[0]
nunitTests = Dir.glob("testing/Test.*/**/Test.*.dll")
nunit.command = nunitRunner
nunit.assemblies nunitTests
nunit.options '/nologo' " /xml=#{File.join(outdir, 'nunit-test-results.xml')}"
puts("Output to #{outdir}")
end