Forge/azure-pipelines.yml

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

# 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
trigger:
- master
pool:
vmImage: 'windows-2019'
timeoutInMinutes: 10
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
2019-09-05 03:00:23 +03:00
- task: NuGetCommand@2
displayName: 'NuGet restore'
inputs:
restoreSolution: '$(Build.SourcesDirectory)\Forge.sln'
2019-09-05 03:00:23 +03:00
- task: VSBuild@1
displayName: 'Build .NET sln'
inputs:
solution: '$(Build.SourcesDirectory)\Forge.sln'
platform: 'Any CPU'
configuration: Release
- task: VSTest@2
inputs:
testAssemblyVer2: |
$(Build.SourcesDirectory)\Forge.TreeWalker.UnitTests\obj\Release\Forge.TreeWalker.UnitTests.dll
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '**/*.csproj'