Forge/azure-pipelines.yml

67 строки
1.6 KiB
YAML
Исходник Обычный вид История

trigger:
- master
pool:
vmImage: 'windows-2019'
timeoutInMinutes: 10
steps:
- 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
displayName: 'Run Tests'
inputs:
testAssemblyVer2: |
$(Build.SourcesDirectory)\Forge.TreeWalker.UnitTests\obj\Release\Forge.TreeWalker.UnitTests.dll
runInParallel: True
- task: NuGetCommand@2
displayName: 'NuGet pack'
inputs:
command: pack
packagesToPack: '**/*.csproj'
configuration: 'Release'
2020-01-14 00:36:44 +03:00
- task: EsrpCodeSigning@1
inputs:
2020-01-14 01:00:33 +03:00
ConnectedServiceName: 'Forge ESRP CodeSign2'
2020-01-14 01:42:40 +03:00
FolderPath: '$(Build.SourcesDirectory)..\a'
2020-01-14 01:25:39 +03:00
Pattern: 'Forge.TreeWalker*.nupkg'
2020-01-14 00:36:44 +03:00
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetVerify",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '50'
MaxRetryAttempts: '5'
- task: NuGetCommand@2
displayName: 'NuGet push AzureArtifacts'
inputs:
command: push
publishVstsFeed: 'ForgeArtifacts'
allowPackageConflicts: true