From 35e70b857ecea2b6574a90e2e1261e5c981a3597 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Thu, 12 Nov 2015 13:24:07 +0300 Subject: [PATCH] Appveyor --- appveyor.yml | 5 ----- nuget/build-appveyor.ps1 | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 5bd945455b..67367d8641 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,8 +3,6 @@ os: Visual Studio 2015 before_build: - git submodule update --init - ps: src\Skia\getnatives.ps1 -- appveyor RegisterXamarinLicense -Email %xamarin_email% -Password %xamarin_password% -Product Android -- appveyor RegisterXamarinLicense -Email %xamarin_email% -Password %xamarin_password% -Product iOS - nuget restore Perspex.sln environment: @@ -18,9 +16,6 @@ install: cache: - gtk-sharp-2.12.26.msi - -on_finish: - - appveyor UnregisterXamarinLicense -Email %xamarin_email% -Password %xamarin_password% configuration: - Release diff --git a/nuget/build-appveyor.ps1 b/nuget/build-appveyor.ps1 index 1439544c5b..35ee371991 100644 --- a/nuget/build-appveyor.ps1 +++ b/nuget/build-appveyor.ps1 @@ -16,13 +16,13 @@ sv repobranch $env:APPVEYOR_REPO_BRANCH sv pullreq $env:APPVEYOR_PULL_REQUEST_NUMBER echo "Checking for publishing" -echo $reponame $repobranch $pullreq -if ($reponame -eq "Perspex/Perspex") +echo "$reponame $repobranch $pullreq" +if ([string]::IsNullOrWhiteSpace($pullreq)) { - echo Repo name matched + echo "Build is not a PR" if($repobranch -eq "master") { - echo Repo branch matched + echo "Repo branch matched" nuget.exe push Perspex.$version.nupkg $key -Source https://www.myget.org/F/perspex-nightly/api/v2/package nuget.exe push Perspex.Desktop.$version.nupkg $key -Source https://www.myget.org/F/perspex-nightly/api/v2/package nuget.exe push Perspex.Skia.Desktop.$version.nupkg $key -Source https://www.myget.org/F/perspex-nightly/api/v2/package