Skip to content

Commit

Permalink
Adding How to build.txt
Browse files Browse the repository at this point in the history
Fixing build to allow uploads
  • Loading branch information
ayende committed Dec 29, 2009
1 parent 18765f7 commit f62f3c5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 12 additions & 0 deletions How to build.txt
@@ -0,0 +1,12 @@
In order to build this project, you need to execute the psake build script from the PowerShell console.
You do this using the following command from the root project directory:

.\psake.ps1 default.ps1

You may need to allow script execution by running the following command as adminstrator:

Set-ExecutionPolicy unrestricted

Also note that the build script assume that you have git.exe on your path.

Running the tests requires access to a database called 'test' on the default instance of SQL Server
11 changes: 7 additions & 4 deletions default.ps1
Expand Up @@ -9,7 +9,7 @@ properties {
$tools_dir = "$base_dir\Tools"
$release_dir = "$base_dir\Release"
$uploadCategory = "Rhino-ETL"
$uploadScript = "C:\Builds\Upload\PublishBuild.build"
$uploadScript = "C:\Builds\Uploader\PublishBuild.build"
}

task default -depends Release
Expand Down Expand Up @@ -68,7 +68,10 @@ task Init -depends Clean {
}

task Compile -depends Init {
exec msbuild "/p:OutDir=""$buildartifacts_dir "" $sln_file"
& msbuild "$sln_file" "/p:OutDir=$build_dir\\" /p:Configuration=Release
if ($lastExitCode -ne 0) {
throw "Error: Failed to execute msbuild"
}
}

task Test -depends Compile {
Expand All @@ -86,8 +89,8 @@ task Release -depends Test {
$build_dir\Rhino.Etl.Core.dll `
$build_dir\Rhino.Etl.Dsl.dll `
$build_dir\Rhino.Etl.Cmd.exe `
$build_dir\Rhino.Etl.Core.xml `
$build_dir\Rhino.Etl.Dsl.xml `
Rhino.Etl.Core\bin\debug\Rhino.Etl.Core.xml `
Rhino.Etl.Dsl\bin\debug\Rhino.Etl.Dsl.xml `
$build_dir\Boo.* `
$build_dir\FileHelpers.dll `
license.txt `
Expand Down

0 comments on commit f62f3c5

Please sign in to comment.