Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Michael Grafnetter 2019-05-09 15:14:18 +02:00
parent 95d27fb3a5
commit 8880d9bc56
1 changed files with 24 additions and 12 deletions

View File

@ -109,25 +109,25 @@ jobs:
configuration: '$(buildConfiguration)' configuration: '$(buildConfiguration)'
restoreNugetPackages: false restoreNugetPackages: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Raw PowerShell Module'
inputs:
pathtoPublish: 'Build/bin/Release/DSInternals'
artifactName: 'DSInternals'
- task: PowerShell@2 - task: PowerShell@2
displayName: 'Pack PowerShell Module' displayName: 'ZIP Pack (PowerShell Module)'
inputs: inputs:
targetType: 'filePath' targetType: 'filePath'
filePath: 'Scripts/Pack-PSModule.ps1' filePath: 'Scripts/Pack-PSModule.ps1'
- task: PowerShell@2
displayName: 'Chocolatey Pack (PowerShell Module)'
inputs:
targetType: 'filePath'
filePath: 'Scripts/Pack-Chocolatey.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)/NuGet'
includeReferencedProjects: true includeReferencedProjects: true
verbosityPack: 'detailed' verbosityPack: 'detailed'
@ -137,7 +137,7 @@ jobs:
command: 'pack' command: 'pack'
packagesToPack: '**/DSInternals.DataStore.csproj' packagesToPack: '**/DSInternals.DataStore.csproj'
configuration: '$(BuildConfiguration)' configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)' packDestination: '$(packagesFolder)/NuGet'
includeReferencedProjects: true includeReferencedProjects: true
verbosityPack: 'detailed' verbosityPack: 'detailed'
@ -147,7 +147,7 @@ jobs:
command: 'pack' command: 'pack'
packagesToPack: '**/DSInternals.Replication.csproj' packagesToPack: '**/DSInternals.Replication.csproj'
configuration: '$(BuildConfiguration)' configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)' packDestination: '$(packagesFolder)/NuGet'
includeReferencedProjects: true includeReferencedProjects: true
verbosityPack: 'detailed' verbosityPack: 'detailed'
@ -157,16 +157,28 @@ jobs:
command: 'pack' command: 'pack'
packagesToPack: '**/DSInternals.SAM.csproj' packagesToPack: '**/DSInternals.SAM.csproj'
configuration: '$(BuildConfiguration)' configuration: '$(BuildConfiguration)'
packDestination: '$(packagesFolder)' packDestination: '$(packagesFolder)/NuGet'
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)/NuGet'
artifactName: 'NuGet' artifactName: 'NuGet'
- task: PublishBuildArtifacts@1
displayName: 'Publish Chocolatey Package'
inputs:
pathtoPublish: '$(packagesFolder)/Chocolatey'
artifactName: 'Chocolatey'
- task: PublishBuildArtifacts@1
displayName: 'Publish GitHub Package'
inputs:
pathtoPublish: '$(packagesFolder)/Module'
artifactName: 'GitHub'
- task: PowerShell@2 - task: PowerShell@2
displayName: 'Run Smoke Tests' displayName: 'Run Smoke Tests'
inputs: inputs: