Skip to content

Commit

Permalink
Release v0.3.3: Merge branch 'master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
joeltimothyoh committed Jun 29, 2020
2 parents 7d8782e + 11d5ac3 commit 4c5f9c6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 28 deletions.
20 changes: 2 additions & 18 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ resources:
type: github
name: theohbrothers/PSModulePublisher
endpoint: theohbrothers # Check for your 'Type: Github' connection under 'Project Settings' > 'Service connections'
ref: refs/tags/v0.3.2
ref: refs/tags/v0.3.4
- repository: PSRepositoryReleaseManager
type: github
name: theohbrothers/PSRepositoryReleaseManager
endpoint: theohbrothers
ref: refs/tags/v0.5.2
ref: refs/tags/v0.6.1

stages:
- stage: build_test
Expand All @@ -44,22 +44,6 @@ stages:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/continuous-build.yml@PSModulePublisher
- job: windows_powershell_5_0
displayName: '[Windows] PowerShell 5.0'
pool:
vmImage: vs2015-win2012r2
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/continuous-build.yml@PSModulePublisher
- job: windows_1803
displayName: '[Windows Server Core 1803] Windows PowerShell'
pool:
vmImage: win1803
steps:
- checkout: self
submodules: recursive
- template: templates/azure-pipelines/entrypoint/windows/powershell/continuous-build.yml@PSModulePublisher
- job: windows_2016
displayName: '[Windows Server 2016] Windows PowerShell'
pool:
Expand Down
4 changes: 2 additions & 2 deletions src/ScheduledTaskManagement/Private/Apply-ScheduledTask.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ function Apply-ScheduledTask {
TaskName = $DefinitionObject['TaskName']
TaskPath = $DefinitionObject['TaskPath']
Trigger = @(
$DefinitionObject['Trigger'].GetEnumerator() | % {
$DefinitionObject['Trigger'] | % {
$args = $_
New-ScheduledTaskTrigger @args
}
)
Action = @(
$DefinitionObject['Action'].GetEnumerator() | % {
$DefinitionObject['Action'] | % {
$args = $_
New-ScheduledTaskAction @args
}
Expand Down
6 changes: 3 additions & 3 deletions src/ScheduledTaskManagement/Public/Setup-ScheduledTask.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ function Setup-ScheduledTask {
[ValidateScript({Test-Path $_ -PathType Leaf})]
[ValidateNotNullOrEmpty()]
[string[]]$DefinitionFile
,
,
[Parameter(ParameterSetName='DefinitionDirectory', Mandatory=$true)]
[ValidateScript({Test-Path $_ -PathType Container})]
[ValidateNotNullOrEmpty()]
[string[]]$DefinitionDirectory
,
,
[Parameter(ParameterSetName='DefinitionObject', Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[object[]]$DefinitionObject
,
,
[Parameter(ParameterSetName='DefinitionFile', Mandatory=$false)]
[Parameter(ParameterSetName='DefinitionDirectory', Mandatory=$false)]
[switch]$AsJson
Expand Down
7 changes: 4 additions & 3 deletions test/scripts/dep/Install-TestDependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ try {
# Install Pester if needed
"Checking Pester version" | Write-Host
$pesterMinimumVersion = [version]'4.0.0'
$pesterMaximumVersion = [version]'4.10.1'
$pester = Get-Module 'Pester' -ListAvailable -ErrorAction SilentlyContinue
if (!$pester -or !($pester.Version -gt $pesterMinimumVersion)) {
if (!$pester -or !($pester.Version -ge $pesterMinimumVersion) -or !($pester.Version -le $pesterMaximumVersion)) {
"Installing Pester" | Write-Host
Install-Module -Name 'Pester' -Repository 'PSGallery' -MinimumVersion $pesterMinimumVersion -Scope CurrentUser -Force
Install-Module -Name 'Pester' -Repository 'PSGallery' -MinimumVersion $pesterMinimumVersion -MaximumVersion $pesterMaximumVersion -Scope CurrentUser -Force
}
Get-Module Pester -ListAvailable
Get-Module Pester -ListAvailable | Out-String | Write-Verbose

}catch {
throw
Expand Down

0 comments on commit 4c5f9c6

Please sign in to comment.