appveyor.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. image:
  2. - Ubuntu2204
  3. - Visual Studio 2022
  4. services:
  5. - docker
  6. for:
  7. -
  8. matrix:
  9. only:
  10. - image: Ubuntu2204
  11. init:
  12. - git config --global core.autocrlf input
  13. before_build:
  14. - sh: mkdir artifacts -p
  15. build_script:
  16. - echo build
  17. - dotnet build -f net8.0 -c Debug test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj
  18. - dotnet build -f net8.0 -c Debug test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj
  19. test_script:
  20. - sh: echo "Run unit 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_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
  22. - sh: echo "Run integration tests"
  23. - 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
  24. -
  25. matrix:
  26. only:
  27. - image: Visual Studio 2022
  28. init:
  29. - git config --global core.autocrlf true
  30. before_build:
  31. - ps: mkdir artifacts -f
  32. build_script:
  33. - echo build
  34. - dotnet build Renci.SshNet.sln -c Debug
  35. - dotnet publish -c Release -r win-x64 /warnaserror .\test\Renci.SshNet.AotCompatibilityTestApp\
  36. - dotnet pack -c Release
  37. test_script:
  38. - ps: echo "Run unit tests for .NET 8.0"
  39. - 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
  40. - ps: echo "Run unit tests for .NET Framework 4.6.2"
  41. - 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
  42. artifacts:
  43. - path: artifacts
  44. name: TestResults
  45. - path: src/**/*.nupkg
  46. - path: src/**/*.snupkg