diff --git a/PowerShellEditorServices.build.ps1 b/PowerShellEditorServices.build.ps1 index 365049e16..0304becc3 100644 --- a/PowerShellEditorServices.build.ps1 +++ b/PowerShellEditorServices.build.ps1 @@ -169,7 +169,7 @@ task TestHost -If { !$script:IsUnix} { exec { & $script:dotnetExe xunit -configuration $Configuration -framework net452 -verbose -nobuild -x86 } } -task CITest (job Test -Safe), { +task CITest ?Test, { # This task is used to ensure we have a chance to upload # test logs as a CI artifact when the tests fail if (error Test) { diff --git a/appveyor.yml b/appveyor.yml index d91c2ff9a..1278b24bc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,8 +16,8 @@ install: Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null Import-PackageProvider NuGet -Force | Out-Null Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | Out-Null - Install-Module InvokeBuild -RequiredVersion 3.2.1 -Scope CurrentUser -Force | Out-Null - Install-Module platyPS -RequiredVersion 0.7.6 -Scope CurrentUser -Force | Out-Null + Install-Module InvokeBuild -MaximumVersion 5.1.0 -Scope CurrentUser -Force | Out-Null + Install-Module platyPS -RequiredVersion 0.9.0 -Scope CurrentUser -Force | Out-Null build_script: - ps: Invoke-Build -Configuration Release diff --git a/scripts/travis.ps1 b/scripts/travis.ps1 index 676ef1dbc..5af67b0dd 100644 --- a/scripts/travis.ps1 +++ b/scripts/travis.ps1 @@ -1,8 +1,8 @@ # Install InvokeBuild -Install-Module InvokeBuild -Scope CurrentUser -Force -Install-Module PlatyPS -Scope CurrentUser -Force +Install-Module InvokeBuild -MaximumVersion 5.1.0 -Scope CurrentUser -Force +Install-Module PlatyPS -RequiredVersion 0.9.0 -Scope CurrentUser -Force # Build the code and perform tests