This commit is contained in:
Alexandre Zollinger Chohfi 2020-09-11 14:46:19 -07:00
Родитель 2fd9e18044
Коммит d9219d2f27
1 изменённых файлов: 65 добавлений и 61 удалений

Просмотреть файл

@ -12,77 +12,81 @@ pool:
variables: variables:
BuildConfiguration: Release BuildConfiguration: Release
steps: jobs:
- task: BatchScript@1 - job: ToolkitBuild
inputs: timeoutInMinutes: 120
filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
arguments: -no_logo
modifyEnvironment: true
displayName: Setup Environment Variables
- task: NuGetToolInstaller@0 steps:
displayName: Use NuGet 5.6.0 - task: BatchScript@1
inputs: inputs:
versionSpec: 5.6.0 filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
arguments: -no_logo
modifyEnvironment: true
displayName: Setup Environment Variables
- task: DotNetCoreCLI@2 - task: NuGetToolInstaller@0
inputs: displayName: Use NuGet 5.6.0
command: custom inputs:
custom: tool versionSpec: 5.6.0
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
- script: nbgv cloud - task: DotNetCoreCLI@2
displayName: Set Version inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
displayName: Install NBGV tool
#- powershell: .\build\Install-WindowsSdkISO.ps1 18362 - script: nbgv cloud
# displayName: Insider SDK displayName: Set Version
- powershell: .\build\build.ps1 -target=Build #- powershell: .\build\Install-WindowsSdkISO.ps1 18362
displayName: Build # displayName: Insider SDK
- powershell: .\build\build.ps1 -target=Test - powershell: .\build\build.ps1 -target=Build
displayName: Test displayName: Build
- powershell: .\build\build.ps1 -target=Package - powershell: .\build\build.ps1 -target=Test
displayName: Package displayName: Test
- powershell: .\build\build.ps1 -target=SmokeTest - powershell: .\build\build.ps1 -target=Package
displayName: SmokeTest displayName: Package
- task: PublishTestResults@2 - powershell: .\build\build.ps1 -target=SmokeTest
inputs: displayName: SmokeTest
testResultsFormat: 'VSTest'
testResultsFiles: '**/VsTestResults*.trx'
displayName: Publish Test Results
condition: succeededOrFailed()
- task: PowerShell@2 - task: PublishTestResults@2
displayName: Authenticode Sign Packages inputs:
inputs: testResultsFormat: 'VSTest'
filePath: build/Sign-Package.ps1 testResultsFiles: '**/VsTestResults*.trx'
env: displayName: Publish Test Results
SignClientUser: $(SignClientUser) condition: succeededOrFailed()
SignClientSecret: $(SignClientSecret)
ArtifactDirectory: bin\nupkg
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1 - task: PowerShell@2
displayName: Publish Package Artifacts displayName: Authenticode Sign Packages
inputs: inputs:
pathToPublish: .\bin\nupkg filePath: build/Sign-Package.ps1
artifactType: container env:
artifactName: Packages SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
ArtifactDirectory: bin\nupkg
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: CopyFiles@2 - task: PublishBuildArtifacts@1
inputs: displayName: Publish Package Artifacts
sourceFolder: .\SmokeTests\AppPackages inputs:
contents: '**\*.appxbundle' pathToPublish: .\bin\nupkg
targetFolder: $(build.artifactstagingdirectory)\SmokeTestBundles artifactType: container
artifactName: Packages
- task: PublishBuildArtifacts@1 - task: CopyFiles@2
displayName: Publish Smoke Test Artifacts inputs:
inputs: sourceFolder: .\SmokeTests\AppPackages
pathToPublish: $(build.artifactstagingdirectory)\SmokeTestBundles contents: '**\*.appxbundle'
artifactType: container targetFolder: $(build.artifactstagingdirectory)\SmokeTestBundles
artifactName: SmokeTestBundles
- task: PublishBuildArtifacts@1
displayName: Publish Smoke Test Artifacts
inputs:
pathToPublish: $(build.artifactstagingdirectory)\SmokeTestBundles
artifactType: container
artifactName: SmokeTestBundles