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
|
2019-08-18 22:33:11 +02:00
|
|
|
- cmd: dotnet restore ./Capnp.Net.Runtime.Core21/Capnp.Net.Runtime.Core21.csproj --verbosity m
|
|
|
|
- cmd: dotnet restore ./Capnp.Net.Runtime.Tests/Capnp.Net.Runtime.Tests.Std20.csproj --verbosity m
|
|
|
|
- cmd: dotnet restore ./Capnp.Net.Runtime.Tests.Core21/Capnp.Net.Runtime.Tests.Core21.csproj --verbosity m
|
2019-08-18 19:38:37 +02:00
|
|
|
- cmd: dotnet restore ./capnpc-csharp/capnpc-csharp.csproj --verbosity m
|
2019-08-18 13:29:53 +02:00
|
|
|
build_script:
|
2019-08-18 17:44:04 +02:00
|
|
|
- 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-19 20:54:42 +02:00
|
|
|
- cmd: scripts\capnpc-csharp-pack.ps1
|
2019-08-18 13:29:53 +02:00
|
|
|
after_build:
|
|
|
|
# For once the build has completed
|
|
|
|
artifacts:
|
2019-08-19 20:54:42 +02:00
|
|
|
- path: Capnp.Net.Runtime\bin\Debug\Capnp.Net.Runtime.1.0.0.nupkg
|
|
|
|
name: Capnp.Net.Runtime.1.0.0_debug
|
|
|
|
type: NuGetPackage
|
|
|
|
- path: Capnp.Net.Runtime\bin\Release\Capnp.Net.Runtime.1.0.0.nupkg
|
|
|
|
name: Capnp.Net.Runtime.1.0.0
|
|
|
|
type: NuGetPackage
|
|
|
|
- path: chocolatey\install\capnpc-csharp-win-x86.1.0.0.nupkg
|
|
|
|
name: capnpc-csharp-win-x86.1.0.0
|
|
|
|
type: NuGetPackage
|
|
|
|
- path: chocolatey\install\capnpc-csharp.1.0.0.nupkg
|
|
|
|
name: capnpc-csharp.1.0.0
|
|
|
|
type: NuGetPackage
|
2019-08-18 13:29:53 +02:00
|
|
|
clone_depth: 1
|
2019-08-19 20:54:42 +02:00
|
|
|
test_script:
|
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation Capnp.Net.Runtime.Tests\bin\Debug\netcoreapp2.2\Capnp.Net.Runtime.Tests.Std20.dll
|
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation Capnp.Net.Runtime.Tests\bin\Release\netcoreapp2.2\Capnp.Net.Runtime.Tests.Std20.dll
|
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation Capnp.Net.Runtime.Tests.Core21\bin\Debug\netcoreapp2.2\Capnp.Net.Runtime.Tests.Core21.dll
|
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation 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
|