Commit d2605d5
Changed files (1)
build
build/rakefile.rb
@@ -7,7 +7,7 @@ deploy_dir = File.join('artifacts','deploy')
task :default => [:test]
-task :init => :clean do
+task :init => :clean do
mkdir 'artifacts'
mkdir 'artifacts/deploy'
end
@@ -18,16 +18,14 @@ task :compile => :init do
sh "#{msbuild_file} ../solution.sln /t:Clean /t:Build /property:Configuration=debug"
end
-task :test, :needs => [:compile] do |t,args|
+task :test => :compile do
file = File.expand_path("../product/project.specifications/bin/debug/project.specifications.dll")
sh "../thirdparty/mbunit/mbunit.cons.exe #{file} /rt:text /rnf:project.specifications.dll-results /rf:artifacts /sr"
end
task :deploy => :compile do
files = File.join('../product','**','mars.rover*.exe')
- puts files
Dir.glob(files).each do|file|
- puts file
FileUtils.cp file,deploy_dir
end
end