44 lines
1.6 KiB
YAML
Raw Normal View History

2019-08-18 13:29:53 +02:00
version: '1.0.{build}'
2019-08-18 13:38:58 +02:00
image: Visual Studio 2019
2019-08-18 13:29:53 +02:00
branches:
only:
- master
init:
# Good practise, because Windows line endings are different from Unix/Linux ones
- cmd: git config --global core.autocrlf true
install:
2019-08-18 13:51:32 +02:00
- cd c:\tools\vcpkg
- vcpkg integrate install
- vcpkg install capnproto
- cd %APPVEYOR_BUILD_FOLDER%
2019-08-18 13:29:53 +02:00
before_build:
- cmd: dotnet --version
2019-08-18 18:01:50 +02:00
- cmd: msbuild -ver
2019-08-18 19:38:37 +02:00
- cmd: dotnet restore ./Capnp.Net.Runtime/Capnp.Net.Runtime.csproj --verbosity m
- cmd: dotnet restore ./capnpc-csharp/capnpc-csharp.csproj --verbosity m
2019-08-18 13:29:53 +02:00
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"
2019-08-18 13:29:53 +02:00
- 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
2019-08-18 13:29:53 +02:00
after_build:
# For once the build has completed
artifacts:
- path: 'bin\win_x86'
name: WebSite
type: WebDeployPackage
- path: 'bin\generic'
name: WebSite
type: WebDeployPackage
2019-08-18 13:29:53 +02:00
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'
2019-08-18 13:29:53 +02:00
on_finish :
# any cleanup in here
deploy: off