Created
September 12, 2011 05:42
-
-
Save codereflection/1210645 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #rakefile.rb | |
| require 'rake' | |
| require 'albacore' | |
| task :default => [:full] | |
| task :full => [:clean,:assemblyInfo,:build,:xunitTests,:specifications,:publish] | |
| task :clean do | |
| FileUtils.rm_rf 'build' | |
| FileUtils.rm_rf 'publish' | |
| end | |
| msbuild :build do |msb| | |
| msb.properties :configuration => :AutomatedRelease | |
| msb.solution = "src/BidsForKids.sln" | |
| end | |
| xunit :xunitTests do |xunit| | |
| xunit.command = "lib/xunit-1.6.1/xunit.console.x86.exe" | |
| xunit.assembly = "build/BidsForKids.Tests.dll" | |
| xunit.html_output = "report/Tests" | |
| end | |
| mspec :specifications do |mspec| | |
| mspec.command = "packages/Machine.Specifications.0.4.24.0/tools/mspec.exe" | |
| mspec.assemblies = "build/BidsForKids.Tests.dll" | |
| mspec.html_output = "report/Specs" | |
| end | |
| desc "Assembly Version Info Generator" | |
| assemblyinfo :assemblyInfo do |asm| | |
| asm.output_file ="src/ProjectVersion.cs" | |
| asm.title = "Bids For Kids Auction Management System" | |
| asm.company_name = "Gatewood Elementary PTA" | |
| asm.product_name = "Bids For Kids Auction Management System" | |
| asm.version = "1.2.1.4" | |
| asm.file_version = "1.2.1.4" | |
| asm.copyright = "Copyright (c)2010-2011 Gatewood Elementary PTA" | |
| end | |
| msbuild :publish do |msb| | |
| msb.targets :ResolveReferences, :_CopyWebApplication | |
| msb.properties( | |
| :configuration => :AutomatedRelease, | |
| :webprojectoutputdir => "../../publish/", | |
| :outdir => "../../publish/bin/" | |
| ) | |
| msb.solution = "src/BidForKids/BidsForKids.csproj" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment