appveyor.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. test_script:
  32. - ps: echo "Run unit tests for .NET 8.0"
  33. - 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
  34. - ps: echo "Run unit tests for .NET Framework 4.6.2"
  35. - 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
  36. artifacts:
  37. - path: artifacts
  38. name: artifacts