appveyor.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. image:
  2. - Ubuntu2204
  3. - Visual Studio 2022
  4. services:
  5. - docker
  6. for:
  7. -
  8. matrix:
  9. only:
  10. - image: Ubuntu2204
  11. before_build:
  12. - sh: mkdir artifacts -p
  13. build_script:
  14. - echo build
  15. - dotnet build -f net8.0 -c Debug test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj
  16. - dotnet build -f net8.0 -c Debug test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj
  17. test_script:
  18. - sh: echo "Run unit tests"
  19. - sh: dotnet test -f net8.0 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=linux_unit_test_net_8_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/linux_unit_test_net_8_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj
  20. - sh: echo "Run integration tests"
  21. - sh: dotnet test -f net8.0 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=linux_integration_test_net_8_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/linux_integration_test_net_8_coverage.xml test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj
  22. -
  23. matrix:
  24. only:
  25. - image: Visual Studio 2022
  26. before_build:
  27. - ps: mkdir artifacts -f
  28. build_script:
  29. - echo build
  30. - dotnet build Renci.SshNet.sln -c Debug
  31. - dotnet publish -c Release -r win-x64 /warnaserror .\test\Renci.SshNet.AotCompatibilityTestApp\
  32. test_script:
  33. - ps: echo "Run unit tests for .NET 8.0"
  34. - ps: dotnet test -f net8.0 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=windows_unit_test_net_8_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/windows_unit_test_net_8_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj
  35. - ps: echo "Run unit tests for .NET Framework 4.6.2"
  36. - ps: dotnet test -f net462 -c Debug --no-restore --no-build --results-directory artifacts --logger Appveyor --logger "console;verbosity=normal" --logger "liquid.md;LogFileName=windows_unit_test_net_4_6_2_report.md" -p:CollectCoverage=true -p:CoverletOutputFormat=cobertura -p:CoverletOutput=../../artifacts/windows_unit_test_net_4_6_2_coverage.xml test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj
  37. artifacts:
  38. - path: artifacts
  39. name: artifacts