Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Install correct Pester version
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Apr 22, 2020
1 parent 9fca8cc commit 033ca39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Build/setup_test_env.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
if ($null -eq (Get-Module -ListAvailable pester)) {
Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser
}
Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser
2 changes: 1 addition & 1 deletion Build/test_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ if (!$ENV:CA_KEY) {
$ENV:CA_KEY = "14mb4l0n1"
}
$coverageResult = Format-Coverage -PesterResults $res -CoverallsApiToken $ENV:CA_KEY -BranchName $ENV:APPVEYOR_REPO_BRANCH
Publish-Coverage -Coverage $coverageResult
Publish-Coverage -Coverage $coverageResult
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ image:
- Visual Studio 2019
- Ubuntu
build_script:
- ps: (Get-Content '.\oh-my-posh.psd1' -Raw).Replace('1.0.0.0', $ENV:APPVEYOR_BUILD_VERSION) | Out-File -Encoding 'UTF8' '.\oh-my-posh.psd1'
- pwsh: (Get-Content '.\oh-my-posh.psd1' -Raw).Replace('1.0.0.0', $ENV:APPVEYOR_BUILD_VERSION) | Out-File -Encoding 'UTF8' '.\oh-my-posh.psd1'
before_test:
- pwsh: .\Build\setup_test_env.ps1
test_script:
- pwsh: >-
if ($isWindows) {
.\Build\test_windows.ps1
}
}
else {
Invoke-Pester
}
Expand Down

0 comments on commit 033ca39

Please sign in to comment.