Skip to content

Commit

Permalink
Use latest version of PlatyPS in AppVeyor (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmeister authored and JamesWTruher committed Jan 16, 2020
1 parent 5d529a3 commit 0ed1c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Note: the PSScriptAnalyzer Chocolatey package is provided and supported by the c
#### Requirements

* [.NET Core 3.1.100 SDK](https://www.microsoft.com/net/download/dotnet-core/3.1#sdk-3.1.100) or newer patch release
* [PlatyPS 0.13.0 or greater](https://github.com/PowerShell/platyPS/releases)
* [PlatyPS PowerShell module, available on PowerShell Gallery](https://github.com/PowerShell/platyPS/releases)
* Optionally but recommended for development: [Visual Studio 2017/2019](https://www.visualstudio.com/downloads/)

#### Steps
Expand Down
5 changes: 2 additions & 3 deletions tools/appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ function Invoke-AppVeyorInstall {
}
}

$platyPSVersion = '0.13.0'
if ($null -eq (Get-Module -ListAvailable PowershellGet)) {
# WMF 4 image build
Write-Verbose -Verbose "Installing platyPS via nuget"
nuget install platyPS -Version $platyPSVersion -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion
nuget install platyPS -source https://www.powershellgallery.com/api/v2 -outputDirectory "$Env:ProgramFiles\WindowsPowerShell\Modules\." -ExcludeVersion
}
else {
Write-Verbose -Verbose "Installing platyPS via Install-Module"
Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion -Repository PSGallery
Install-Module -Name platyPS -Force -Scope CurrentUser -Repository PSGallery
}

# Do not use 'build.ps1 -bootstrap' option for bootstraping the .Net SDK as it does not work well in CI with the AppVeyor Ubuntu image
Expand Down

0 comments on commit 0ed1c8b

Please sign in to comment.