forked from amirci/webacceptance_mvcconf_feb11
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile.rb
More file actions
74 lines (56 loc) · 1.71 KB
/
Rakefile.rb
File metadata and controls
74 lines (56 loc) · 1.71 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
require 'rubygems'
#require 'bundler'
#require 'bundler/setup' # does not work
puts "Checking bundled dependencies, please wait...."
system "bundle install --system --quiet"
require 'albacore'
require 'git'
require 'noodle'
require 'rake/clean'
include FileUtils
solution_file = FileList["*.sln"].first
build_file = FileList["*.msbuild"].first
project_name = "MavenThought.MovieLibrary"
CLEAN.include("main/**/bin", "main/**/obj", "test/**/obj", "test/**/bin")
CLOBBER.include("**/_*", "**/.svn", "lib/*", "**/*.user", "**/*.cache", "**/*.suo")
desc 'Default build'
task :default => ["build:all"]
desc 'Setup requirements to build and deploy'
task :setup => ["setup:dep:local"]
desc "Run all tests"
task :test => ["test:all"]
namespace :setup do
namespace :dep do
Noodle::Rake::NoodleTask.new :local do |n|
n.groups << :runtime
n.groups << :dev
end
end
end
namespace :build do
desc "Build the project"
msbuild :all, :config do |msb, args|
msb.properties :configuration => args[:config] || :Debug
msb.targets :Build
msb.solution = solution_file
end
desc "Rebuild the project"
task :re => ["clean", "build:all"]
end
namespace :test do
desc 'Run all tests'
task :all => [:default] do
tests = FileList["test/**/bin/debug/**/*.Tests.dll"].join " "
system "./tools/gallio/bin/gallio.echo.exe #{tests}"
end
desc 'Run all features'
task :features => [:default] do
system "./tools/ansi132/x86/ansicon.exe -p"
system "cucumber"
end
desc 'Runs the test class that matches the name'
task :class, [:testee] => [:default] do |t, args|
tests = FileList["test/**/bin/debug/**/*.Tests.dll"].join " "
system "./tools/gallio/bin/gallio.echo.exe \"/filter:include Type:#{args.testee}\" #{tests}"
end
end