From bb3d6252e14d978a63d2ae8470ee9346e31036c2 Mon Sep 17 00:00:00 2001 From: Chris Duck Date: Thu, 15 Jan 2015 14:54:23 -0600 Subject: [PATCH 1/2] Update nupsec to take target path as a build parameter --- Pester.nuspec | 19 +++++++++---------- build.psake.ps1 | 3 ++- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Pester.nuspec b/Pester.nuspec index 96cf8931d..429eb65df 100644 --- a/Pester.nuspec +++ b/Pester.nuspec @@ -13,15 +13,14 @@ http://www.apache.org/licenses/LICENSE-2.0.html - - - + + + - - - - - + + + + + - - + \ No newline at end of file diff --git a/build.psake.ps1 b/build.psake.ps1 index 6bec2d3d9..f8e4d5e4d 100644 --- a/build.psake.ps1 +++ b/build.psake.ps1 @@ -5,6 +5,7 @@ properties { $baseDir = $psake.build_script_dir $version = git describe --abbrev=0 --tags $nugetExe = "$baseDir\vendor\tools\nuget" + $targetBase = "tools" } Task default -depends Build @@ -44,7 +45,7 @@ Task Pack-Nuget { mkdir "$baseDir\build" exec { . $nugetExe pack "$baseDir\Pester.nuspec" -OutputDirectory "$baseDir\build" ` - -NoPackageAnalysis -version $version + -NoPackageAnalysis -version $version -Properties targetBase=$targetBase } } From 24768cda836e73c9b76f4d173727ef9e9e93e0d5 Mon Sep 17 00:00:00 2001 From: Chris Duck Date: Thu, 15 Jan 2015 14:56:03 -0600 Subject: [PATCH 2/2] Fixed indentation --- build.psake.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.psake.ps1 b/build.psake.ps1 index f8e4d5e4d..fbbea273c 100644 --- a/build.psake.ps1 +++ b/build.psake.ps1 @@ -5,7 +5,7 @@ properties { $baseDir = $psake.build_script_dir $version = git describe --abbrev=0 --tags $nugetExe = "$baseDir\vendor\tools\nuget" - $targetBase = "tools" + $targetBase = "tools" } Task default -depends Build