Permalink
Browse files

Setting up rake/albacore build

  • Loading branch information...
1 parent 73b3cd4 commit c4c19d087939969bf823fc14b9e264a62bbc7f06 @codereflection codereflection committed Feb 6, 2011
Showing 2,100 changed files with 149,755 additions and 0 deletions.
View
@@ -0,0 +1,19 @@
+@echo off
+
+:Build
+cls
+"tools\Rake\bin\ruby.exe" "tools\Rake\bin\rake" %*
+
+rem Bail if we're running a TeamCity build.
+if defined TEAMCITY_PROJECT_NAME goto Quit
+
+rem Loop the build script.
+set CHOICE=nothing
+echo (Q)uit, (Enter) runs the build again
+set /P CHOICE=
+if /i "%CHOICE%"=="Q" goto :Quit
+
+GOTO Build
+
+:Quit
+exit /b %errorlevel%
View
@@ -0,0 +1,2 @@
+clear
+"tools\Rake\bin\ruby.exe" "tools\Rake\bin\rake"
View
@@ -0,0 +1,39 @@
+#rakefile.rb
+
+require 'rake'
+require 'albacore'
+
+task :default => [:full]
+
+
+task :full => [:clean,:assemblyInfo,:build,:specifications]
+
+task :clean do
+ FileUtils.rm_rf 'build'
+ FileUtils.rm_rf 'publish'
+end
+
+
+msbuild :build do |msb|
+ msb.properties :configuration => :AutomatedRelease
+ msb.solution = "src/Giles.sln"
+end
+
+
+mspec :specifications do |mspec|
+ mspec.command = "lib/mspec/mspec.exe"
+ mspec.assemblies = "build/Giles.Specs.dll"
+ mspec.html_output = "report/Specs"
+end
+
+
+desc "Assembly Version Info Generator"
+assemblyinfo :assemblyInfo do |asm|
+ asm.output_file ="src/ProjectVersion.cs"
+ asm.title = "Giles, Rupert Giles, at your service!"
+ asm.company_name = "codereflection"
+ asm.product_name = "Giles - auto test runner"
+ asm.version = "0.0.1.0"
+ asm.file_version = "0.0.1.0"
+ asm.copyright = "Copyright (c)2011 Jeff 'codereflection' Schumacher"
+end
View
@@ -0,0 +1,10 @@
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Giles, Rupert Giles, at your service!")]
+[assembly: AssemblyCompany("codereflection")]
+[assembly: AssemblyProduct("Giles - auto test runner")]
+[assembly: AssemblyCopyright("Copyright (c)2011 Jeff 'codreflection' Schumacher")]
+[assembly: AssemblyVersion("0.0.1.0")]
+[assembly: AssemblyFileVersion("0.0.1.0")]
+
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit c4c19d0

Please sign in to comment.