Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
azure-pipelines[bot] 2019-01-01 23:19:01 +00:00
parent 1359cf39c3
commit 9bda6f8e9b
1 changed files with 106 additions and 108 deletions

View File

@ -18,126 +18,124 @@ variables:
solution: '**/*.sln'
packagesFolder: 'Build/packages'
jobs:
-job: Test
displayName: 'Test'
pool:
vmImage: 'VS2017-Win2016'
variables:
buildConfiguration: 'Debug'
pool:
vmImage: 'VS2017-Win2016'
jobs:
- job: Test
displayName: 'Test'
variables:
buildConfiguration: 'Debug'
-job: Release
displayName: 'Release'
dependsOn: Test
condition: succeeded()
pool:
vmImage: 'VS2017-Win2016'
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
- job: Release
displayName: 'Release'
dependsOn: Test
condition: succeeded()
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
displayName: 'NuGet Restore Packages'
inputs:
command: 'restore'
restoreSolution: '$(solution)'
- task: NuGetCommand@2
displayName: 'NuGet Restore Packages'
inputs:
command: 'restore'
restoreSolution: '$(solution)'
- task: DownloadSecureFile@1
displayName: 'Download SNK File'
inputs:
secureFile: 'DSInternals.Private.snk'
- task: DownloadSecureFile@1
displayName: 'Download SNK File'
inputs:
secureFile: 'DSInternals.Private.snk'
- task: CopyFiles@2
displayName: 'Copy SNK File to Keys'
inputs:
sourceFolder: '$(Agent.TempDirectory)'
contents: '*.snk'
targetFolder: 'Keys'
- task: CopyFiles@2
displayName: 'Copy SNK File to Keys'
inputs:
sourceFolder: '$(Agent.TempDirectory)'
contents: '*.snk'
targetFolder: 'Keys'
- task: VSBuild@1
displayName: 'VSBuild ($(buildConfiguration) x86)'
inputs:
solution: '$(solution)'
platform: 'x86'
configuration: '$(buildConfiguration)'
restoreNugetPackages: false
- task: VSBuild@1
displayName: 'VSBuild ($(buildConfiguration) x86)'
inputs:
solution: '$(solution)'
platform: 'x86'
configuration: '$(buildConfiguration)'
restoreNugetPackages: false
- task: VSBuild@1
displayName: 'VSBuild ($(buildConfiguration) x64)'
inputs:
solution: '$(solution)'
platform: 'x64'
configuration: '$(buildConfiguration)'
restoreNugetPackages: false
- task: VSBuild@1
displayName: 'VSBuild ($(buildConfiguration) x64)'
inputs:
solution: '$(solution)'
platform: 'x64'
configuration: '$(buildConfiguration)'
restoreNugetPackages: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Raw PowerShell Module'
inputs:
pathtoPublish: 'Build/bin/Release/DSInternals'
artifactName: 'DSInternals'
- task: PublishBuildArtifacts@1
displayName: 'Publish Raw PowerShell Module'
inputs:
pathtoPublish: 'Build/bin/Release/DSInternals'
artifactName: 'DSInternals'
- task: PowerShell@2
displayName: 'Pack PowerShell Module'
inputs:
targetType: 'filePath'
filePath: 'Scripts/Pack-PSModule.ps1'
- task: PowerShell@2
displayName: 'Pack PowerShell Module'
inputs:
targetType: 'filePath'
filePath: 'Scripts/Pack-PSModule.ps1'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.Common)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.Common.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.Common)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.Common.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.DataStore)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.DataStore.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.DataStore)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.DataStore.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.Replication)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.Replication.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.Replication)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.Replication.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.SAM)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.SAM.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: NuGetCommand@2
displayName: 'NuGet Pack (DSInternals.SAM)'
inputs:
command: 'pack'
packagesToPack: '**/DSInternals.SAM.csproj'
configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)'
includeReferencedProjects: true
verbosityPack: 'detailed'
- task: PublishBuildArtifacts@1
displayName: 'Publish NuGet Packages'
inputs:
pathtoPublish: '$(packagesFolder)'
artifactName: 'NuGet'
- task: PublishBuildArtifacts@1
displayName: 'Publish NuGet Packages'
inputs:
pathtoPublish: '$(packagesFolder)'
artifactName: 'NuGet'
- task: PowerShell@2
displayName: 'Run Smoke Tests'
inputs:
targetType: 'filePath'
filePath: 'Scripts/Invoke-SmokeTests.ps1'
- task: PowerShell@2
displayName: 'Run Smoke Tests'
inputs:
targetType: 'filePath'
filePath: 'Scripts/Invoke-SmokeTests.ps1'
- task: PublishTestResults@2
displayName: 'Publish Smoke Test Results'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/*.xml'
searchFolder: 'TestResults'
- task: PublishTestResults@2
displayName: 'Publish Smoke Test Results'
inputs:
testResultsFormat: 'NUnit'
testResultsFiles: '**/*.xml'
searchFolder: 'TestResults'