diff --git a/How to build.txt b/How to build.txt new file mode 100644 index 0000000..6782708 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/default.ps1 b/default.ps1 index a357cac..974e2e4 100644 --- a/default.ps1 +++ b/default.ps1 @@ -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 @@ -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 { @@ -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 `