Browse Source

Appveyor

pull/321/head
Nikita Tsukanov 10 years ago
parent
commit
35e70b857e
  1. 5
      appveyor.yml
  2. 8
      nuget/build-appveyor.ps1

5
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

8
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

Loading…
Cancel
Save