2020-07-23 23:55:19 +03:00
|
|
|
jobs:
|
|
|
|
- job: Windows
|
|
|
|
pool:
|
2021-12-01 12:30:10 +03:00
|
|
|
vmImage: 'windows-2022'
|
2020-07-23 23:55:19 +03:00
|
|
|
steps:
|
2021-12-01 12:31:12 +03:00
|
|
|
|
2021-12-01 12:30:10 +03:00
|
|
|
- task: DotNetCoreCLI@2
|
2021-12-01 12:31:12 +03:00
|
|
|
inputs:
|
|
|
|
command: 'test'
|
|
|
|
projects: 'test/AvaloniaEdit.Tests'
|
|
|
|
displayName: 'Run Tests'
|
2021-12-01 12:30:10 +03:00
|
|
|
|
2020-07-24 00:16:50 +03:00
|
|
|
- task: PowerShell@2
|
2020-07-23 23:55:19 +03:00
|
|
|
inputs:
|
2020-07-24 00:23:45 +03:00
|
|
|
targetType: 'filePath'
|
|
|
|
filePath: $(System.DefaultWorkingDirectory)\build.ps1
|
|
|
|
arguments: > # Use this to avoid newline characters in multiline string
|
|
|
|
-Platform "AnyCPU"
|
|
|
|
-Configuration "Release"
|
2020-07-24 00:24:37 +03:00
|
|
|
displayName: 'Build and Package'
|
2020-07-23 22:27:53 +03:00
|
|
|
|
2020-07-23 23:55:19 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
inputs:
|
2020-07-24 00:36:12 +03:00
|
|
|
pathToPublish: '$(Build.SourcesDirectory)/artifacts/nuget'
|
2020-07-23 23:55:19 +03:00
|
|
|
artifactName: 'Nuget'
|
|
|
|
condition: succeeded()
|
2020-07-23 22:27:53 +03:00
|
|
|
|