2019-08-18 17:44:04 +02:00

42 lines
1.5 KiB
YAML

version: '1.0.{build}'
image: Visual Studio 2019
branches:
only:
- master
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
- cd c:\tools\vcpkg
- vcpkg integrate install
- vcpkg install capnproto
- cd %APPVEYOR_BUILD_FOLDER%
before_build:
- cmd: dotnet --version
- cmd: msbuild --ver
build_script:
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Debug"
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Release"
- cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Debug"
- cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Release"
- cmd: dotnet publish -c Release -r win-x86 --self-contained -o bin\win_x86 ./capnpc-csharp/capnpc-csharp.csproj
- cmd: dotnet publish -c Release -o bin\generic ./capnpc-csharp/capnpc-csharp.csproj
after_build:
# For once the build has completed
artifacts:
- path: 'bin\win_x86'
name: WebSite
type: WebDeployPackage
- path: 'bin\generic'
name: WebSite
type: WebDeployPackage
clone_depth: 1
test:
assemblies:
- 'Capnp.Net.Runtime.Tests\bin\Debug\netcoreapp2.2\Capnp.Net.Runtime.Tests.Std20.dll'
- 'Capnp.Net.Runtime.Tests\bin\Release\netcoreapp2.2\Capnp.Net.Runtime.Tests.Std20.dll'
- 'Capnp.Net.Runtime.Tests.Core21\bin\Debug\netcoreapp2.2\Capnp.Net.Runtime.Tests.Core21.dll'
- 'Capnp.Net.Runtime.Tests.Core21\bin\Release\netcoreapp2.2\Capnp.Net.Runtime.Tests.Core21.dll'
on_finish :
# any cleanup in here
deploy: off