csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.1 KiB
81 lines
2.1 KiB
# Starter pipeline
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
# Add steps that build, run tests, deploy, and more:
|
|
# https://aka.ms/yaml
|
|
|
|
jobs:
|
|
- job: Mac
|
|
pool:
|
|
name: 'AvaloniaMacPool'
|
|
|
|
steps:
|
|
- task: UseDotNet@2
|
|
displayName: 'Use .NET Core SDK 6.0.404'
|
|
inputs:
|
|
version: 6.0.404
|
|
|
|
- task: UseDotNet@2
|
|
displayName: 'Use .NET Core SDK 7.0.101'
|
|
inputs:
|
|
version: 7.0.101
|
|
|
|
- script: system_profiler SPDisplaysDataType |grep Resolution
|
|
|
|
- script: |
|
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
|
pkill node
|
|
appium &
|
|
pkill IntegrationTestApp
|
|
./build.sh CompileNative
|
|
rm -rf $(osascript -e "POSIX path of (path to application id \"net.avaloniaui.avalonia.integrationtestapp\")")
|
|
pkill IntegrationTestApp
|
|
./samples/IntegrationTestApp/bundle.sh
|
|
open -n ./samples/IntegrationTestApp/bin/Debug/net7.0/osx-arm64/publish/IntegrationTestApp.app
|
|
pkill IntegrationTestApp
|
|
|
|
- task: DotNetCoreCLI@2
|
|
inputs:
|
|
command: 'test'
|
|
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj'
|
|
|
|
- script: |
|
|
pkill IntegrationTestApp
|
|
pkill node
|
|
|
|
|
|
- job: Windows
|
|
pool:
|
|
vmImage: 'windows-2022'
|
|
|
|
steps:
|
|
- task: UseDotNet@2
|
|
displayName: 'Use .NET Core SDK 6.0.404'
|
|
inputs:
|
|
version: 6.0.404
|
|
|
|
- task: UseDotNet@2
|
|
displayName: 'Use .NET Core SDK 7.0.101'
|
|
inputs:
|
|
version: 7.0.101
|
|
|
|
- task: Windows Application Driver@0
|
|
inputs:
|
|
OperationType: 'Start'
|
|
AgentResolution: '4K'
|
|
displayName: 'Start WinAppDriver'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
inputs:
|
|
command: 'build'
|
|
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
retryCountOnTaskFailure: 3
|
|
inputs:
|
|
command: 'test'
|
|
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj'
|
|
|
|
- task: Windows Application Driver@0
|
|
inputs:
|
|
OperationType: 'Stop'
|
|
displayName: 'Stop WinAppDriver'
|
|
|