AvaloniaEdit/azure-pipelines.yml

32 строки
834 B
YAML
Исходник Обычный вид История

2022-10-06 23:06:40 +03:00
variables:
2022-10-06 23:18:12 +03:00
packageVersion: '11.0.999-cibuild00$(Build.BuildId)-beta'
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
2022-01-12 18:46:30 +03:00
- task: DotNetCoreCLI@2
displayName: 'Pack AvaloniaEdit'
2020-07-23 23:55:19 +03:00
inputs:
packagesToPack: 'src\AvaloniaEdit\AvaloniaEdit.csproj;src\AvaloniaEdit.TextMate\AvaloniaEdit.TextMate.csproj'
2022-01-12 18:46:30 +03:00
command: pack
configuration: 'Release'
2022-01-12 18:46:30 +03:00
outputDir: '$(Build.ArtifactStagingDirectory)/NuGet'
verbosityPack: normal
2022-10-06 23:06:40 +03:00
versioningScheme: byEnvVar
versionEnvVar: packageVersion
2020-07-23 23:55:19 +03:00
- task: PublishBuildArtifacts@1
inputs:
2022-01-12 18:46:30 +03:00
pathToPublish: '$(Build.ArtifactStagingDirectory)/NuGet'
2020-07-23 23:55:19 +03:00
artifactName: 'Nuget'
condition: succeeded()