Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure-pipelines.yml: issue #1466 #1467

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ For older change log history see the [historic changelog](HISTORIC_CHANGELOG.md)

## [Unreleased]

### Changed

- SqlServerDsc
- Changed hosted agent to newer YAML VM Image Label

### Changed

- SqlServerDsc
Expand Down
38 changes: 36 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,20 @@ stages:
pathToPublish: 'output/'
artifactName: 'output'
publishLocation: 'Container'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Write-Output "Post-build disk space"
Get-PSDrive -PSProvider FileSystem

- stage: Test
dependsOn: Build
jobs:
- job: Test_HQRM
displayName: 'HQRM'
pool:
vmImage: 'win1803'
vmImage: 'vs2017-win2016'
timeoutInMinutes: 0
steps:
- task: DownloadBuildArtifacts@0
Expand All @@ -71,11 +77,17 @@ stages:
testResultsFormat: 'NUnit'
testResultsFiles: 'output/testResults/NUnit*.xml'
testRunTitle: 'HQRM'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Write-Output "Post-Test_HQRM disk space"
Get-PSDrive -PSProvider FileSystem

- job: Test_Unit
displayName: 'Unit'
pool:
vmImage: 'win1803'
vmImage: 'vs2017-win2016'
timeoutInMinutes: 0
steps:
- powershell: |
Expand Down Expand Up @@ -112,6 +124,12 @@ stages:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: 'output/testResults/CodeCov*.xml'
pathToSources: '$(Build.SourcesDirectory)/output/$(dscBuildVariable.RepositoryName)'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Write-Output "Post-Test_Unit disk space"
Get-PSDrive -PSProvider FileSystem

- job: Test_Integration_SQL2016
displayName: 'Integration (SQL2016)'
Expand Down Expand Up @@ -175,6 +193,16 @@ stages:
testResultsFormat: 'NUnit'
testResultsFiles: 'output/testResults/NUnit*.xml'
testRunTitle: 'Integration (SQL Server 2016 / Windows Server 2019)'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Install-PackageProvider -Name NuGet -Force -Scope CurrentUser
Install-Module -Name Get-FolderSize -Force -Verbose -Scope CurrentUser
Write-Output "Post-Test_Integration_SQL2016 disk space"
Get-PSDrive -PSProvider FileSystem
Get-FolderSize -BasePath "C:\"
condition: always()

- job: Test_Integration_SQL2017
displayName: 'Integration (SQL2017)'
Expand Down Expand Up @@ -238,6 +266,12 @@ stages:
testResultsFormat: 'NUnit'
testResultsFiles: 'output/testResults/NUnit*.xml'
testRunTitle: 'Integration (SQL Server 2017 / Windows Server 2019)'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Write-Output "Post-Test_Integration_SQL2017 disk space"
Get-PSDrive -PSProvider FileSystem

- stage: Deploy
dependsOn: Test
Expand Down