From ec4c04e38f61dd6299f6ddfe4b868a666721d00c Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 7 Aug 2017 10:58:07 -0700 Subject: [PATCH 1/3] Only push to NuGet for Full Build (cron) --- tools/travis.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/travis.ps1 b/tools/travis.ps1 index b60733610f2..f7441ab234e 100644 --- a/tools/travis.ps1 +++ b/tools/travis.ps1 @@ -183,7 +183,11 @@ else $packages += Start-PSPackage @packageParams -Type AppImage foreach($package in $packages) { - if($env:NUGET_KEY -and $env:NUGET_URL -and [system.io.path]::GetExtension($package) -ieq '.nupkg') + # Publish the packages to the nuget feed if: + # 1 - It's a fullBuild (allready checked, for not a PR) + # 2 - We have the info to publish (NUGET_KEY and NUGET_URL) + # 3 - it's a nupkg file + if($isFullBuild -and $env:NUGET_KEY -and $env:NUGET_URL -and [system.io.path]::GetExtension($package) -ieq '.nupkg') { log "pushing $package to $env:NUGET_URL" Start-NativeExecution -sb {dotnet nuget push $package --api-key $env:NUGET_KEY --source "$env:NUGET_URL/api/v2/package"} -IgnoreExitcode From 3c00391d2da781d186332515ca043e2c6397eae5 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Tue, 8 Aug 2017 10:25:09 -0700 Subject: [PATCH 2/3] fix spelling error in already --- tools/travis.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/travis.ps1 b/tools/travis.ps1 index f7441ab234e..bbf82dd8c4f 100644 --- a/tools/travis.ps1 +++ b/tools/travis.ps1 @@ -184,7 +184,7 @@ else foreach($package in $packages) { # Publish the packages to the nuget feed if: - # 1 - It's a fullBuild (allready checked, for not a PR) + # 1 - It's a fullBuild (already checked, for not a PR) # 2 - We have the info to publish (NUGET_KEY and NUGET_URL) # 3 - it's a nupkg file if($isFullBuild -and $env:NUGET_KEY -and $env:NUGET_URL -and [system.io.path]::GetExtension($package) -ieq '.nupkg') From b4bcbf137966a1c6c75055957da28fe9faebfeec Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Wed, 9 Aug 2017 15:44:44 -0700 Subject: [PATCH 3/3] Address PR feedback --- tools/travis.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/travis.ps1 b/tools/travis.ps1 index bbf82dd8c4f..58a8aad1ef3 100644 --- a/tools/travis.ps1 +++ b/tools/travis.ps1 @@ -184,10 +184,10 @@ else foreach($package in $packages) { # Publish the packages to the nuget feed if: - # 1 - It's a fullBuild (already checked, for not a PR) + # 1 - It's a Daily build (already checked, for not a PR) # 2 - We have the info to publish (NUGET_KEY and NUGET_URL) # 3 - it's a nupkg file - if($isFullBuild -and $env:NUGET_KEY -and $env:NUGET_URL -and [system.io.path]::GetExtension($package) -ieq '.nupkg') + if($isDailyBuild -and $env:NUGET_KEY -and $env:NUGET_URL -and [system.io.path]::GetExtension($package) -ieq '.nupkg') { log "pushing $package to $env:NUGET_URL" Start-NativeExecution -sb {dotnet nuget push $package --api-key $env:NUGET_KEY --source "$env:NUGET_URL/api/v2/package"} -IgnoreExitcode