Simplify check for PR - skip Nupkg

Tested locally, should be working correctly now
This commit is contained in:
amaitland
2014-11-18 14:20:37 +10:00
parent d5c16f4a81
commit 8429df2ada
+4 -13
View File
@@ -218,9 +218,11 @@ function NugetPackageRestore
function Nupkg
{
if($SkipNugetForPr)
if (Test-Path Env:\APPVEYOR_PULL_REQUEST_NUMBER)
{
return;
Write-Diagnostic "Pr Number: $env:APPVEYOR_PULL_REQUEST_NUMBER"
Write-Diagnostic "Skipping Nupkg"
return
}
$nuget = Join-Path $WorkingDir .\nuget\NuGet.exe
@@ -266,17 +268,6 @@ function WriteAssemblyVersion
$NewString | Set-Content $Filename -Encoding UTF8
}
function CheckIfPrBuild()
{
if (Test-Path Env:\APPVEYOR_PULL_REQUEST_NUMBER)
{
Write-Diagnostic "Pr Number: $env:APPVEYOR_PULL_REQUEST_NUMBER"
$SkipNugetForPr = $true
}
}
CheckIfPrBuild
DownloadNuget
NugetPackageRestore