azure-pipelines-integrationtests.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Starter pipeline
  2. # Start with a minimal pipeline that you can customize to build and deploy your code.
  3. # Add steps that build, run tests, deploy, and more:
  4. # https://aka.ms/yaml
  5. trigger:
  6. - master
  7. jobs:
  8. - job: Mac
  9. pool:
  10. name: 'AvaloniaMacPool'
  11. steps:
  12. - script: system_profiler SPDisplaysDataType |grep Resolution
  13. - script: |
  14. pkill node
  15. appium &
  16. pkill IntegrationTestApp
  17. ./build.sh CompileNative
  18. rm -rf $(osascript -e "POSIX path of (path to application id \"net.avaloniaui.avalonia.integrationtestapp\")")
  19. pkill IntegrationTestApp
  20. ./samples/IntegrationTestApp/bundle.sh
  21. open -n ./samples/IntegrationTestApp/bin/Debug/net6.0/osx-arm64/publish/IntegrationTestApp.app
  22. pkill IntegrationTestApp
  23. - task: DotNetCoreCLI@2
  24. inputs:
  25. command: 'test'
  26. projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj'
  27. - script: |
  28. pkill IntegrationTestApp
  29. pkill node
  30. - job: Windows
  31. pool:
  32. vmImage: 'windows-2022'
  33. steps:
  34. - task: UseDotNet@2
  35. displayName: 'Use .NET Core SDK 6.0.202'
  36. inputs:
  37. version: 6.0.202
  38. - task: Windows Application Driver@0
  39. inputs:
  40. OperationType: 'Start'
  41. AgentResolution: '4K'
  42. displayName: 'Start WinAppDriver'
  43. - task: DotNetCoreCLI@2
  44. inputs:
  45. command: 'build'
  46. projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj'
  47. - task: DotNetCoreCLI@2
  48. inputs:
  49. command: 'test'
  50. projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj'
  51. - task: Windows Application Driver@0
  52. inputs:
  53. OperationType: 'Stop'
  54. displayName: 'Stop WinAppDriver'