TMDbLib/appveyor.yml
2018-01-15 20:25:02 +01:00

27 lines
787 B
YAML

image: Visual Studio 2017
build_script:
- ps: >-
[xml]$doc = (Get-Content .\TMDbLib\TMDbLib.csproj)
$version = $doc.Project.PropertyGroup.VersionPrefix
Update-AppveyorBuild -Version "$version build $env:APPVEYOR_BUILD_NUMBER"
- ps: # Core
- ps: msbuild /t:Restore
- ps: # Build Library
- ps: msbuild /t:Build /p:Configuration=Release TMDbLib
- ps: # Library
- ps: msbuild /t:Pack /p:Configuration=Release /p:OutputPath=..\Nuget\ TMDbLib
- ps: # Test app
- ps: msbuild /t:Build /p:Configuration=Release TestApplication
- ps: # Tests
- ps: msbuild /t:Build /p:Configuration=Release TMDbLibTests
test: off
artifacts:
- path: Nuget\*.nupkg
deploy:
- provider: NuGet
api_key:
secure: b7EJLsMmhEzzEgx9lLU8+4oPRSSnZc8Ef3JkYCt25w1wfxMYo//1X+FOwbtkCdkM
on:
branch: nuget