Skip to content

Commit

Permalink
Pre-release v0.3.0-B190723 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Jul 28, 2019
1 parent 9837410 commit 8716536
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .azure-pipelines/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@ stages:
strategy:
matrix:
Linux:
displayName: 'Linux'
imageName: 'ubuntu-16.04'
MacOS:
displayName: 'MacOS'
imageName: 'macos-10.13'
Windows:
displayName: 'Windows'
imageName: 'vs2017-win2016'
publish: 'true'
analysis: 'true'
coverage: 'true'
pool:
vmImage: $(imageName)
displayName: 'PowerShell'
steps:

# Install pipeline dependencies
Expand Down Expand Up @@ -77,12 +81,24 @@ stages:
# publishRunAttachments: true
# condition: succeededOrFailed()

# Publish Code Coverage Results
# Generate Code Coverage report
- task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4
displayName: 'Code coverage report generator'
inputs:
reports: 'reports\pester-coverage.xml'
targetdir: 'reports\coverage'
sourcedirs: 'src\PSRule.Rules.Azure'
reporttypes: 'HtmlInline_AzurePipelines;Cobertura;Badges'
tag: $(Build.BuildNumber)
condition: eq(variables['coverage'], 'true')

# Publish Code Coverage report
- task: PublishCodeCoverageResults@1
displayName: 'Publish Pester code coverage'
inputs:
codeCoverageTool: 'JaCoCo'
summaryFileLocation: 'reports/pester-coverage.xml'
codeCoverageTool: 'Cobertura'
summaryFileLocation: 'reports/coverage/Cobertura.xml'
reportDirectory: 'reports/coverage'
condition: eq(variables['coverage'], 'true')

# Generate artifacts
Expand All @@ -103,6 +119,8 @@ stages:
displayName: Live
pool:
vmImage: 'ubuntu-16.04'
variables:
isPreRelease: $[contains(variables['Build.SourceBranchName'], '-B')]
steps:
- task: DownloadPipelineArtifact@1
displayName: 'Download module'
Expand All @@ -127,4 +145,4 @@ stages:
releaseNotes: 'See [change log](https://github.com/BernieWhite/PSRule.Rules.Azure/blob/master/CHANGELOG.md)'
assetUploadMode: replace
addChangeLog: false
isPreRelease: $(contains(variables['Build.SourceBranchName'], '-B'))
isPreRelease: $(isPreRelease)
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

## Unreleased

## v0.3.0-B190723 (pre-release)

- Excluded global services from Azure.Resource.AllowedRegions. [#96](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/96)
- Enforce minimum TLS version for App Service. [#99](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/99)
- Updated App Service site rules to include slots. [#100](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/100)
Expand All @@ -11,6 +13,10 @@
- Unattached network interfaces. [#92](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/92)
- Added NSG rule to check for lateral traversal security rules. [#103](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/103)

Additional notes:

- Requires pre-release v0.8.0-B190716 of PSRule.

## v0.3.0-B190710 (pre-release)

- Fix handling of empty DNS servers in `Azure.VirtualNetwork.LocalDNS`. [#84](https://github.com/BernieWhite/PSRule.Rules.Azure/issues/84)
Expand Down
4 changes: 4 additions & 0 deletions pipeline.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ if ($version -like '*-*') {
Write-Host -Object "[Pipeline] -- Using version: $version" -ForegroundColor Green;
Write-Host -Object "[Pipeline] -- Using versionSuffix: $versionSuffix" -ForegroundColor Green;

if ($Env:coverage -eq 'true') {
$CodeCoverage = $True;
}

# Copy the PowerShell modules files to the destination path
function CopyModuleFiles {
param (
Expand Down

0 comments on commit 8716536

Please sign in to comment.