mirror of
https://github.com/zap-proto/cs.git
synced 2026-10-30 15:05:32 +00:00
Finishes the in-flight capnp→ZAP rebrand on this branch. The prior commits
renamed identifiers/namespaces/files/projects (Capnp.Net.Runtime→Zap.Net.Runtime,
CapnpC→ZapC, .capnp→.zap) but left the human-readable brand name "Cap'n Proto"
throughout doc-comments, .csproj/.nuspec descriptions, README, MSBuild .xaml
rule display names, and the generated XML doc. This completes brand neutrality:
- Replace 154 "Cap'n Proto" / 4 "Cap'n-Proto" / 1 "Cap'n'p" prose occurrences
with "ZAP" across 32 first-party files (runtime, generator, zapc-csharp,
MSBuild integration, chocolatey nuspecs, README, docs, XML doc).
- Revert the LICENSE provenance URL to the real upstream fork
(c80k/capnproto-dotnetcore) — upstream-fork license headers must stay.
- Canonicalize project/repo URLs to github.com/zap-proto/cs (were fabricated
c80k/zap-dotnetcore) in csproj/nuspec/VERIFICATION/README badges.
- Canonicalize docs URLs zap-protocol(.github.io|/zap-cs|/zap-cpp-core)
→ zap-proto.dev / github.com/zap-proto/{cs,cpp-core}.
- Collapse redundant "zap \"ZAP\"" PackageTags to "zap".
Verified consistent (no toolchain on host): every .sln/.csproj ProjectReference
resolves; all namespaces are Zap*/ZapC*; MSBuild task chain
(GenerateZapFileCodeBehindTask, ZapFiles ItemGroup, _ZapcCsharp_TaskAssembly)
is uniformly renamed; props/targets/xaml/coverage/chocolatey carry no capnp.
Deliberately preserved as upstream-derived test data (not first-party source):
upstream Cap'n Proto schema fixtures (rpc.zap, rpc-twoparty.zap, json.zap,
rpc-csharp.zap), golden compiler-error outputs (errors.txt), and the
machine-generated DO-NOT-EDIT test.zap.{c++,h}. Their "Cap'n Proto" strings are
the literal output of the external schema compiler the compat test matches.
104 lines
4.6 KiB
YAML
104 lines
4.6 KiB
YAML
image: Visual Studio 2019
|
|
# branches:
|
|
# only:
|
|
# - master
|
|
version: '{build}'
|
|
cache:
|
|
- c:\Tools\vcpkg\installed
|
|
install:
|
|
- cd c:\tools\vcpkg
|
|
- vcpkg integrate install
|
|
- vcpkg install zap
|
|
- set PATH_COPY=%PATH%
|
|
- set PATH=%PATH%;c:\tools\vcpkg\installed\x86-windows\tools\zap
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
- dotnet tool install -g nbgv --version 3.4.240
|
|
- choco install reportgenerator.portable --version=4.5.6 --force -y
|
|
- dotnet tool install -g coveralls.net --version 1.0.0
|
|
init:
|
|
# Good practise, because Windows line endings are different from Unix/Linux ones
|
|
- cmd: git config --global core.autocrlf true
|
|
environment:
|
|
COVERALLS_REPO_TOKEN:
|
|
secure: mwxwOymoS7vB56iQN5Obbt8+oMqbRpK8Ei2GZUI7Mm46C8asDR/Wu0RAXYlhp85Q
|
|
MSBUILDSINGLELOADCONTEXT: '1'
|
|
before_build:
|
|
- cmd: nbgv cloud
|
|
- cmd: dotnet --version
|
|
- cmd: msbuild -ver
|
|
- cmd: dotnet restore ./Zap.Net.Runtime/Zap.Net.Runtime.csproj --verbosity m
|
|
- cmd: dotnet restore ./Zap.Net.Runtime.Tests/Zap.Net.Runtime.Tests.csproj --verbosity m
|
|
- cmd: dotnet restore ./ZapC.CSharp.Generator/ZapC.CSharp.Generator.csproj --verbosity m
|
|
- cmd: dotnet restore ./ZapC.CSharp.Generator.Tests/ZapC.CSharp.Generator.Tests.csproj --verbosity m
|
|
- cmd: dotnet restore ./ZapC.CSharp.MsBuild.Generation/ZapC.CSharp.MsBuild.Generation.csproj --verbosity m
|
|
- cmd: dotnet restore ./ZapC.CSharp.MsBuild.Generation.Tests/ZapC.CSharp.MsBuild.Generation.Tests.csproj --verbosity m
|
|
- cmd: dotnet restore ./zapc-csharp/zapc-csharp.csproj --verbosity m
|
|
build_script:
|
|
- cmd: msbuild ./Zap.Net.sln /p:Configuration="Debug" -V:m
|
|
- cmd: msbuild ./Zap.Net.sln /p:Configuration="Release" -V:m
|
|
- cmd: msbuild ./ZapCompatTest.sln /p:Configuration="Debug" -V:m
|
|
- cmd: msbuild ./ZapCompatTest.sln /p:Configuration="Release" -V:m
|
|
- ps: scripts\zapc-csharp-pack.ps1
|
|
after_build:
|
|
# For once the build has completed
|
|
artifacts:
|
|
- path: bin\Release\Zap.Net.Runtime.*.nupkg
|
|
name: Zap.Net.Runtime
|
|
type: NuGetPackage
|
|
- path: bin\Release\ZapC.CSharp.MsBuild.Generation.*.nupkg
|
|
name: ZapC.CSharp.MsBuild.Generation
|
|
type: NuGetPackage
|
|
- path: chocolatey\install\zapc-csharp-win-x86.*.nupkg
|
|
name: zapc-csharp-win-x86
|
|
type: NuGetPackage
|
|
- path: chocolatey\install\zapc-csharp.*-deprecated.nupkg
|
|
name: zapc-csharp-deprecated
|
|
type: NuGetPackage
|
|
- path: zapc-csharp\nupkg\*.nupkg
|
|
name: zapc-csharp
|
|
type: NuGetPackage
|
|
- path: coverage
|
|
name: Coverage report
|
|
type: zip
|
|
test_script:
|
|
- cmd: |
|
|
nbgv get-version -v NuGetPackageVersion >> myversion.txt
|
|
set /P VERSION=< myversion.txt
|
|
vstest.console /logger:Appveyor /inIsolation ZapC.CSharp.Generator.Tests\bin\Release\netcoreapp3.1\ZapC.CSharp.Generator.Tests.dll
|
|
cd %APPVEYOR_BUILD_FOLDER%\zapc-csharp
|
|
dotnet tool install --global --add-source ./nupkg zapc-csharp --version %VERSION%
|
|
cd %APPVEYOR_BUILD_FOLDER%\install-test
|
|
compile-test
|
|
cd %APPVEYOR_BUILD_FOLDER%
|
|
vstest.console /logger:Appveyor /inIsolation ZapC.CSharp.Generator.Tests\bin\Release\netcoreapp3.1\ZapC.CSharp.Generator.Tests.dll
|
|
dotnet tool uninstall --global zapc-csharp
|
|
cd %APPVEYOR_BUILD_FOLDER%\install-test
|
|
notinstalled-test
|
|
cd %APPVEYOR_BUILD_FOLDER%\chocolatey\install
|
|
choco install zap --source="https://chocolatey.org/api/v2" --force -y
|
|
choco install zapc-csharp-win-x86 --source=".;https://chocolatey.org/api/v2" --force -y --version %VERSION% --pre
|
|
cd %APPVEYOR_BUILD_FOLDER%\install-test
|
|
compile-test
|
|
choco uninstall zapc-csharp-win-x86 -y
|
|
notinstalled-test
|
|
cd %APPVEYOR_BUILD_FOLDER%
|
|
vstest.console /logger:Appveyor /inIsolation ZapC.CSharp.MsBuild.Generation.Tests\bin\Release\netcoreapp3.1\ZapC.CSharp.MsBuild.Generation.Tests.dll
|
|
msbuild -t:restore ./MsBuildGenerationTest/MsBuildGenerationTest.csproj /p:Configuration="Debug" /p:PackageReferenceVersion="%VERSION%"
|
|
msbuild ./MsBuildGenerationTest/MsBuildGenerationTest.sln /p:Configuration="Debug" /p:PackageReferenceVersion="%VERSION%"
|
|
vstest.console /logger:Appveyor /inIsolation Zap.Net.Runtime.Tests\bin\Debug\net471\Zap.Net.Runtime.Tests.dll
|
|
vstest.console /logger:Appveyor /inIsolation Zap.Net.Runtime.Tests\bin\Release\netcoreapp3.1\Zap.Net.Runtime.Tests.dll
|
|
powershell -File .\scripts\measure-coverage.ps1
|
|
csmacnz.Coveralls --lcov -i "coverage\lcov.info" --repoToken %COVERALLS_REPO_TOKEN%
|
|
on_finish :
|
|
# any cleanup in here
|
|
deploy:
|
|
- provider: Environment
|
|
name: GitHub Releases
|
|
description: 'Deployed from CI.'
|
|
artifact: /.*\.nupkg/
|
|
draft: true
|
|
prerelease: true
|
|
force_update: true
|
|
on:
|
|
APPVEYOR_REPO_TAG: true
|