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