2019-08-22 02:19:11 +03:00
|
|
|
trigger:
|
|
|
|
- master
|
|
|
|
|
|
|
|
pool:
|
2019-09-05 03:12:34 +03:00
|
|
|
vmImage: 'windows-2019'
|
2019-09-05 03:06:43 +03:00
|
|
|
timeoutInMinutes: 10
|
2019-08-22 02:19:11 +03:00
|
|
|
|
|
|
|
steps:
|
2019-09-05 03:47:01 +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'
|
2019-09-05 04:03:33 +03:00
|
|
|
configuration: Release
|
|
|
|
|
|
|
|
- task: VSTest@2
|
2019-09-05 20:48:16 +03:00
|
|
|
displayName: 'Run Tests'
|
2019-09-05 04:03:33 +03:00
|
|
|
inputs:
|
|
|
|
testAssemblyVer2: |
|
2019-09-05 20:13:41 +03:00
|
|
|
$(Build.SourcesDirectory)\Forge.TreeWalker.UnitTests\obj\Release\Forge.TreeWalker.UnitTests.dll
|
2019-09-05 20:48:16 +03:00
|
|
|
runInParallel: True
|
2019-09-05 20:13:41 +03:00
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
2019-09-05 20:48:16 +03:00
|
|
|
displayName: 'NuGet pack'
|
2019-09-05 20:13:41 +03:00
|
|
|
inputs:
|
|
|
|
command: pack
|
2019-09-05 20:22:58 +03:00
|
|
|
packagesToPack: '**/*.csproj'
|
2019-09-05 20:48:16 +03:00
|
|
|
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'
|
|
|
|
|
2019-09-05 20:48:16 +03:00
|
|
|
- task: NuGetCommand@2
|
2019-09-06 03:36:53 +03:00
|
|
|
displayName: 'NuGet push AzureArtifacts'
|
2019-09-05 20:48:16 +03:00
|
|
|
inputs:
|
|
|
|
command: push
|
|
|
|
publishVstsFeed: 'ForgeArtifacts'
|
2019-09-06 04:41:39 +03:00
|
|
|
allowPackageConflicts: true
|