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-09-11 22:20:29 +02:00
|
|
|
# branches:
|
|
|
|
# only:
|
|
|
|
# - master
|
2019-08-23 23:13:45 +02:00
|
|
|
cache:
|
|
|
|
- c:\Tools\vcpkg\installed
|
2019-08-18 13:29:53 +02:00
|
|
|
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-21 19:48:04 +02:00
|
|
|
dotnet_csproj:
|
|
|
|
patch: true
|
2019-08-21 20:51:22 +02:00
|
|
|
file: '**\*.csproj;**\*.props;**\*.fsproj;**\*.xml'
|
2019-08-21 19:48:04 +02:00
|
|
|
version: '{version}'
|
|
|
|
package_version: '{version}'
|
|
|
|
assembly_version: '{version}'
|
|
|
|
file_version: '{version}'
|
|
|
|
informational_version: '{version}'
|
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-09-11 22:20:29 +02:00
|
|
|
- cmd: dotnet restore ./CapnpC.CSharp.Generator/CapnpC.CSharp.Generator.csproj --verbosity m
|
2019-09-10 22:48:25 +02:00
|
|
|
- cmd: dotnet restore ./CapnpC.CSharp.Generator.Tests/CapnpC.CSharp.Generator.Tests.csproj --verbosity m
|
2019-09-11 22:20:29 +02:00
|
|
|
- cmd: dotnet restore ./CapnpC.CSharp.MsBuild.Generation/CapnpC.CSharp.MsBuild.Generation.csproj --verbosity m
|
|
|
|
- cmd: dotnet restore ./CapnpC.CSharp.MsBuild.Generation.Tests/CapnpC.CSharp.MsBuild.Generation.Tests.csproj --verbosity m
|
2019-09-11 22:50: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-24 01:28:30 +02:00
|
|
|
- ps: scripts\capnpc-csharp-pack.ps1 $env:appveyor_build_version
|
2019-08-18 13:29:53 +02:00
|
|
|
after_build:
|
|
|
|
# For once the build has completed
|
|
|
|
artifacts:
|
2019-08-25 17:52:35 +02:00
|
|
|
- path: Capnp.Net.Runtime\bin\Release\Capnp.Net.Runtime.$(appveyor_build_version).nupkg
|
2019-08-21 19:48:04 +02:00
|
|
|
name: Capnp.Net.Runtime
|
2019-08-19 20:54:42 +02:00
|
|
|
type: NuGetPackage
|
2019-09-11 22:20:29 +02:00
|
|
|
- path: CapnpC.CSharp.MsBuild.Generation\bin\Release\CapnpC.CSharp.MsBuild.Generation.$(appveyor_build_version).nupkg
|
|
|
|
name: CapnpC.CSharp.MsBuild.Generation
|
|
|
|
type: NuGetPackage
|
2019-08-24 01:23:08 +02:00
|
|
|
- path: chocolatey\install\capnpc-csharp-win-x86.$(appveyor_build_version).nupkg
|
2019-08-21 19:48:04 +02:00
|
|
|
name: capnpc-csharp-win-x86
|
2019-08-19 20:54:42 +02:00
|
|
|
type: NuGetPackage
|
2019-08-24 01:23:08 +02:00
|
|
|
- path: chocolatey\install\capnpc-csharp.$(appveyor_build_version).nupkg
|
2019-08-21 19:48:04 +02:00
|
|
|
name: capnpc-csharp
|
2019-08-19 20:54:42 +02:00
|
|
|
type: NuGetPackage
|
2019-08-18 13:29:53 +02:00
|
|
|
clone_depth: 1
|
2019-08-19 20:54:42 +02:00
|
|
|
test_script:
|
2019-09-10 22:48:25 +02:00
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation CapnpC.CSharp.Generator.Tests\bin\Release\netcoreapp2.2\CapnpC.CSharp.Generator.Tests.dll
|
2019-09-01 00:06:27 +02:00
|
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%\chocolatey\install
|
|
|
|
- cmd: choco install capnpc-csharp --source=".;https://chocolatey.org/api/v2" --force -y
|
2019-08-31 22:00:04 +02:00
|
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%\install-test
|
|
|
|
- cmd: compile-test
|
2019-09-10 22:48:25 +02:00
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation CapnpC.CSharp.Generator.Tests\bin\Release\netcoreapp2.2\CapnpC.CSharp.Generator.Tests.dll
|
2019-08-31 22:00:04 +02:00
|
|
|
- cmd: choco uninstall capnpc-csharp -y
|
|
|
|
- cmd: notinstalled-test
|
2019-09-01 00:06:27 +02:00
|
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%\chocolatey\install
|
|
|
|
- cmd: choco install capnpc-csharp-win-x86 --source=".;https://chocolatey.org/api/v2" --force -y
|
|
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%\install-test
|
2019-08-31 22:00:04 +02:00
|
|
|
- cmd: compile-test
|
|
|
|
- cmd: choco uninstall capnpc-csharp-win-x86 -y
|
|
|
|
- cmd: notinstalled-test
|
|
|
|
- cmd: cd %APPVEYOR_BUILD_FOLDER%
|
2019-09-11 22:20:29 +02:00
|
|
|
- cmd: vstest.console /logger:Appveyor /inIsolation CapnpC.CSharp.MsBuild.Generation.Tests\bin\Release\netcoreapp2.2\CapnpC.CSharp.MsBuild.Generation.Tests.dll
|
2019-08-19 20:54:42 +02:00
|
|
|
- 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
|
2019-08-19 22:46:58 +02:00
|
|
|
deploy:
|
|
|
|
- provider: Environment
|
2019-08-26 21:16:21 +02:00
|
|
|
name: GitHub Releases
|
2019-08-27 20:49:31 +02:00
|
|
|
description: 'Deployed from CI.'
|
2019-08-26 22:31:03 +02:00
|
|
|
artifact: /.*\.nupkg/
|
|
|
|
draft: true
|
|
|
|
prerelease: true
|
2019-08-27 20:49:31 +02:00
|
|
|
force_update: true
|
2019-08-19 22:48:31 +02:00
|
|
|
on:
|
|
|
|
APPVEYOR_REPO_TAG: true
|