Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
azure-pipelines[bot] 2019-01-01 23:06:29 +00:00
parent d5870858e3
commit 01c3c0b450

View File

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