Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2015-01-27 13:57:19 +0300
committernulltoken <emeric.fermas@gmail.com>2015-02-01 16:18:54 +0300
commit95d95b58facc6f4522fcb2142bf433698700f6e2 (patch)
treed10686afd00c711502ed4ccd727e5d23e880f392 /appveyor.yml
parentfabaa5d7c079f6312a27443b688d634ec4858664 (diff)
Always build NuGet package
But limit publishing of artifacts on merge
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/appveyor.yml b/appveyor.yml
index dd0f0754..a43128f5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -33,9 +33,9 @@ install:
$Version = "$($Env:APPVEYOR_BUILD_VERSION)$($VersionSuffix)"
$Env:ASSEMBLY_INFORMATIONAL_VERSION = $Version
Write-Host "Assembly informational version = $($Env:ASSEMBLY_INFORMATIONAL_VERSION)"
- $ShouldBuildNuget = "$($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)"
- $Env:SHOULD_BUILD_NUGET = $ShouldBuildNuget
- Write-Host "Should build Nuget = $($Env:SHOULD_BUILD_NUGET)"
+ $ShouldPublishNugetArtifact = "$($env:APPVEYOR_PULL_REQUEST_NUMBER -eq $null)"
+ $Env:SHOULD_PUBLISH_NUGET_ARTIFACT = $ShouldPublishNugetArtifact
+ Write-Host "Should publish Nuget artifact = $($Env:SHOULD_PUBLISH_NUGET_ARTIFACT)"
assembly_info:
patch: true
@@ -59,9 +59,10 @@ test_script:
on_success:
- ps: |
- If ($Env:SHOULD_BUILD_NUGET -eq $True)
+- ps: |
+ & "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
+ If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
{
- & "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
Get-ChildItem "C:\projects\libgit2sharp\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}