Skip to content

Commit

Permalink
Merge pull request #64 from PlagueHO/Issue-62
Browse files Browse the repository at this point in the history
Fixed GitVersion.yml feature and fix Regex - Fixes #62
  • Loading branch information
PlagueHO committed Jan 15, 2020
2 parents 8d51ba6 + c0f42e6 commit 58b0eaa
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 11 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Set `testRunTitle` for PublishTestResults steps so that a helpful name is
displayed in Azure DevOps for each test run.
- Set a display name on all the jobs and tasks in the CI
pipeline - fixes [issue #63](https://github.com/PowerShell/WSManDsc/issues/63)
pipeline - fixes [issue #63](https://github.com/dsccommunity/WSManDsc/issues/63)

### Deprecated

Expand All @@ -49,6 +49,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
README.md.
- WSManListener
- Fix Find-Certificate Verbose Messages [Issue #49](https://github.com/dsccommunity/WSManDsc/issues/49).
- Fixed `GitVersion.yml` feature and fix Regex - fixes
[issue #62](https://github.com/dsccommunity/WSManDsc/issues/62).
- Fix import statement in all tests, making sure it throws if module
DscResource.Test cannot be imported - fixes
[issue #67](https://github.com/dsccommunity/WSManDsc/issues/67).
- Fix deploy stage in CI pipeline to prevent it executing against forks
of the repository - fixes [issue #66](https://github.com/dsccommunity/WSManDsc/issues/66).

### Security

Expand Down
4 changes: 2 additions & 2 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ branches:
feature:
tag: useBranchName
increment: Minor
regex: f(eature(s)?)?[/-]
regex: f(eature(s)?)?\/-]
source-branches: ['master']
hotfix:
tag: fix
increment: Patch
regex: (hot)?fix(es)?[/-]
regex: (hot)?fix(es)?[\/-]
source-branches: ['master']

ignore:
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ stages:

- stage: Deploy
dependsOn: Test
# Only execute deploy stage if we're on master and previous stage succeeded
condition: |
and(
succeeded(),
or(
eq(variables['Build.SourceBranch'], 'refs/heads/master'),
startsWith(variables['Build.SourceBranch'], 'refs/tags/')
)
),
contains(variables['System.TeamFoundationCollectionUri'], 'dsccommunity')
)
jobs:
- job: Deploy_Module
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/DSC_WSManConfig.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $script:dscResourceName = 'DSC_WSManConfig'

$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)

Import-Module -Name DscResource.Test -Force
Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop'

$script:testEnvironment = Initialize-TestEnvironment `
-DSCModuleName $script:dscModuleName `
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/DSC_WSManListener.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $script:dscResourceName = 'DSC_WSManListener'

$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)

Import-Module -Name DscResource.Test -Force
Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop'

$script:testEnvironment = Initialize-TestEnvironment `
-DSCModuleName $script:dscModuleName `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $script:dscResourceName = 'DSC_WSManServiceConfig'

$script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)

Import-Module -Name DscResource.Test -Force
Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop'

$script:testEnvironment = Initialize-TestEnvironment `
-DSCModuleName $script:dscModuleName `
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DSC_WSManConfig.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)

function Invoke-TestSetup
{
Import-Module -Name DscResource.Test -Force
Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop'

$script:testEnvironment = Initialize-TestEnvironment `
-DSCModuleName $script:dscModuleName `
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DSC_WSManListener.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)

function Invoke-TestSetup
{
Import-Module -Name DscResource.Test -Force
Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop'

$script:testEnvironment = Initialize-TestEnvironment `
-DSCModuleName $script:dscModuleName `
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/DSC_WSManServiceConfig.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $script:moduleRoot = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)

function Invoke-TestSetup
{
Import-Module -Name DscResource.Test -Force
Import-Module -Name DscResource.Test -Force -ErrorAction 'Stop'

$script:testEnvironment = Initialize-TestEnvironment `
-DSCModuleName $script:dscModuleName `
Expand Down

0 comments on commit 58b0eaa

Please sign in to comment.