Skip to content

Commit

Permalink
Forcing installation of platyPS if not found when building documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWTruher committed Oct 18, 2018
1 parent 5c01978 commit 9ef4a9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ test_script:
# Upload the project along with test results as a zip archive
on_finish:
- ps: Import-Module .\tools\appveyor.psm1; Invoke-AppveyorFinish
- ps: Import-Module "${env:BuildConfiguration}\tools\appveyor.psm1"; Invoke-AppveyorFinish
4 changes: 3 additions & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ function Build-Documentation
#if ( $null -eq (Get-Module -ListAvailable -FullyQualifiedName $modInfo))
if ( $null -eq (Get-Module -ListAvailable platyPS))
{
throw "Cannot find required minimum version $requiredVersionOfplatyPS of platyPS. Install via 'Install-Module platyPS'"
Write-Verbose -verbose "platyPS not found, installing"
Install-Module -Force -Name platyPS -Scope CurrentUser
# throw "Cannot find required minimum version $requiredVersionOfplatyPS of platyPS. Install via 'Install-Module platyPS'"
}
if (-not (Test-Path $markdownDocsPath))
{
Expand Down

0 comments on commit 9ef4a9d

Please sign in to comment.