Skip to content

Commit

Permalink
Fix ci (#358)
Browse files Browse the repository at this point in the history
* Fix windows tests

* Install powershell v6.0.0 on unix so we have help files available
  • Loading branch information
vors committed Jun 2, 2018
1 parent 7403922 commit 6961a1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -13,7 +13,7 @@ install:
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
- sudo apt-get update
- sudo apt-get install -y powershell
- sudo apt-get install -y powershell=6.0.2-1.ubuntu.14.04

script:
- pwsh ./build.ps1
Expand Down
5 changes: 3 additions & 2 deletions test/Pester/PlatyPs.Tests.ps1
Expand Up @@ -630,8 +630,9 @@ if (-not $global:IsUnix) {
$paths = $env:PsModulePath.Split(';')
foreach($path in $paths)
{
$path = Split-Path $path -Parent
$foundHelp += Get-ChildItem -Path $path -Recurse | Where-Object { $_.Name -like "*$HelpFileName"} | Select-Object Name
$path = Split-Path $path -Parent
$foundHelp += Get-ChildItem -ErrorAction SilentlyContinue -Path $path -Recurse |
Where-Object { $_.Name -like "*$HelpFileName"} | Select-Object Name
}

$foundHelp.Count | Should BeGreaterThan 0
Expand Down

0 comments on commit 6961a1e

Please sign in to comment.