forked from g0t4/teamcity-course-aspnet-identity-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile.rb
More file actions
23 lines (18 loc) · 733 Bytes
/
Rakefile.rb
File metadata and controls
23 lines (18 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
23
require 'albacore'
msbuild :msbuild do |msb|
msb.solution = 'src/AspNet.Identity.MongoDB.sln'
msb.properties = { :configuration => :Release }
msb.targets = [ :Clean, :Build ]
end
nunit :tests => [:msbuild] do |tests|
tests.command = 'src/packages/NUnit.Runners.2.6.3/tools/nunit-console.exe'
tests.assemblies = ['build/tests/Tests.dll']
end
nunit :integration_tests => [:msbuild] do |tests|
tests.command = 'src/packages/NUnit.Runners.2.6.3/tools/nunit-console.exe'
tests.assemblies = ['build/integrationTests/IntegrationTests.dll']
end
task :all_tests => [:tests, :integration_tests]
task :package => [:all_tests] do
sh 'src/.nuget/nuget.exe pack src/AspNet.Identity.MongoDB/AspNet.Identity.MongoDB.csproj'
end