oxyplot-xamarin/appveyor.yml

39 строки
2.2 KiB
YAML

pull_requests:
do_not_increment_build_number: true
install:
- cinst gitversion.portable --version=3.6.4 -y
- cinst gitlink --version=2.3.0 -y
before_build:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- NuGet restore Source/OxyPlot.AppVeyor.sln
- gitversion /l console /output buildserver /updateAssemblyInfo
build_script:
- msbuild Source/OxyPlot.AppVeyor.sln "/property:Platform=Any CPU" "/property:Configuration=Release" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Source/OxyPlot.AppVeyor.sln "/property:Platform=x86" "/property:Configuration=Release" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Source/OxyPlot.AppVeyor.sln "/property:Platform=x64" "/property:Configuration=Release" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- msbuild Source/OxyPlot.AppVeyor.sln "/property:Platform=ARM" "/property:Configuration=Release" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- gitlink c:\projects\oxyplot-xamarin -u https://github.com/oxyplot/oxyplot-xamarin -f Source/OxyPlot.AppVeyor.sln -ignore OxyPlot.Windows10,OxyPlot.MonoTouch,OxyPlot.Xamarin.Android,OxyPlot.Xamarin.iOS,OxyPlot.Xamarin.Forms.Platform.Android,OxyPlot.Xamarin.Forms.Platform.iOS,OxyPlot.Xamarin.Forms.Platform.iOS.Classic
- NuGet pack Source\OxyPlot.Xamarin.Android\OxyPlot.Xamarin.Android.nuspec -version "%GitVersion_NuGetVersion%"
- NuGet pack Source\OxyPlot.Xamarin.iOS\OxyPlot.Xamarin.iOS.nuspec -version "%GitVersion_NuGetVersion%"
- NuGet pack Source\OxyPlot.Xamarin.Forms\OxyPlot.Xamarin.Forms.nuspec -version "%GitVersion_NuGetVersion%"
artifacts:
- path: Output
name: OxyPlot-Xamarin-$(GitVersion_SemVer)
type: zip
- path: '*.nupkg'
deploy:
provider: NuGet
server: https://www.myget.org/F/oxyplot/api/v2/package
api_key:
secure: 2GnqgfpkOUH6Umfn1WWlun0b021+QeInBXkgQOQfa4/wDOYHLT757rrjTsb0lmon
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/