forked from lefthandedgoat/Oak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile.rb
44 lines (36 loc) · 1.09 KB
/
Rakefile.rb
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
#MIT License
#http://www.github.com/amirrajan/rake-dot-net
#Copyright (c) 2011 Amir Rajan
require './RakeDotNet/command_shell.rb'
require './RakeDotNet/web_deploy.rb'
require './RakeDotNet/iis_express.rb'
require './RakeDotNet/sln_builder.rb'
require './RakeDotNet/file_sync.rb'
require 'net/http'
require 'yaml'
task :rake_dot_net_initialize do
yml = YAML::load File.open("dev.yml")
@solution_name = yml["solution_name"]
@test_dll = yml["test_dll"]
@test_runner_command = "#{ yml["test_runner"] } #{ @test_dll }"
@sh = CommandShell.new
@sln = SlnBuilder.new
end
desc "builds and deploys website to directories iis express will use to run app"
task :default => [:build]
desc "builds the solution"
task :build => :rake_dot_net_initialize do
@sln.build @solution_name
end
desc "run nspec tests"
task :tests => :build do
sh @test_runner_command
end
desc "run nspec tests tagged with Tag[\"wip\"]"
task :wip => :build do
sh @test_runner_command + " --tag wip"
end
desc "run nspec tests"
task :tests_excluding_performance => :build do
sh @test_runner_command + " --tag ~performance"
end