|
|
@ -15,11 +15,12 @@ jobs: |
|
|
version: 7.0.101 |
|
|
version: 7.0.101 |
|
|
|
|
|
|
|
|
- script: system_profiler SPDisplaysDataType |grep Resolution |
|
|
- script: system_profiler SPDisplaysDataType |grep Resolution |
|
|
|
|
|
displayName: 'Get Resolution' |
|
|
|
|
|
|
|
|
- script: | |
|
|
- script: | |
|
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer |
|
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer |
|
|
pkill node |
|
|
pkill node |
|
|
appium & |
|
|
appium > appium.out & |
|
|
pkill IntegrationTestApp |
|
|
pkill IntegrationTestApp |
|
|
./build.sh CompileNative |
|
|
./build.sh CompileNative |
|
|
rm -rf $(osascript -e "POSIX path of (path to application id \"net.avaloniaui.avalonia.integrationtestapp\")") |
|
|
rm -rf $(osascript -e "POSIX path of (path to application id \"net.avaloniaui.avalonia.integrationtestapp\")") |
|
|
@ -27,16 +28,23 @@ jobs: |
|
|
./samples/IntegrationTestApp/bundle.sh |
|
|
./samples/IntegrationTestApp/bundle.sh |
|
|
open -n ./samples/IntegrationTestApp/bin/Debug/net7.0/osx-arm64/publish/IntegrationTestApp.app |
|
|
open -n ./samples/IntegrationTestApp/bin/Debug/net7.0/osx-arm64/publish/IntegrationTestApp.app |
|
|
pkill IntegrationTestApp |
|
|
pkill IntegrationTestApp |
|
|
|
|
|
displayName: 'Build IntegrationTestApp' |
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2 |
|
|
- task: DotNetCoreCLI@2 |
|
|
|
|
|
displayName: 'Run Integration Tests' |
|
|
inputs: |
|
|
inputs: |
|
|
command: 'test' |
|
|
command: 'test' |
|
|
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj' |
|
|
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj' |
|
|
|
|
|
arguments: '-l "console;verbosity=detailed"' |
|
|
|
|
|
|
|
|
- script: | |
|
|
- script: | |
|
|
pkill IntegrationTestApp |
|
|
pkill IntegrationTestApp |
|
|
pkill node |
|
|
pkill node |
|
|
|
|
|
displayName: 'Stop Appium' |
|
|
|
|
|
|
|
|
|
|
|
- publish: appium.out |
|
|
|
|
|
displayName: 'Publish appium logs on failure' |
|
|
|
|
|
condition: failed() |
|
|
|
|
|
|
|
|
- job: Windows |
|
|
- job: Windows |
|
|
pool: |
|
|
pool: |
|
|
@ -60,11 +68,13 @@ jobs: |
|
|
displayName: 'Start WinAppDriver' |
|
|
displayName: 'Start WinAppDriver' |
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2 |
|
|
- task: DotNetCoreCLI@2 |
|
|
|
|
|
displayName: 'Build IntegrationTestApp' |
|
|
inputs: |
|
|
inputs: |
|
|
command: 'build' |
|
|
command: 'build' |
|
|
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj' |
|
|
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj' |
|
|
|
|
|
|
|
|
- task: DotNetCoreCLI@2 |
|
|
- task: DotNetCoreCLI@2 |
|
|
|
|
|
displayName: 'Run Integration Tests' |
|
|
retryCountOnTaskFailure: 3 |
|
|
retryCountOnTaskFailure: 3 |
|
|
inputs: |
|
|
inputs: |
|
|
command: 'test' |
|
|
command: 'test' |
|
|
|