This repository was archived by the owner on Oct 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,7 @@ task Init {
33
33
Set-Location $ProjectRoot
34
34
" Build System Details:"
35
35
Get-Item ENV:BH*
36
- if ($env: APPVEYOR ) {
37
- Get-Item ENV:APPVEYOR*
38
- }
39
- " `n "
40
-
41
- " Installing the latest version of Pester"
42
- Install-Module - Name Pester - Repository PSGallery - Scope CurrentUser - AllowClobber - SkipPublisherCheck - Confirm:$false - ErrorAction Stop - Force - Verbose:$false
43
- Import-Module - Name Pester - Verbose:$false - Force
36
+ Get-Item ENV:BUILD*
44
37
if ($env: BHProjectName -cne $moduleName ) {
45
38
$env: BHProjectName = $moduleName
46
39
}
@@ -196,6 +189,9 @@ Task Import -Depends Compile {
196
189
} - description ' Imports the newly compiled module'
197
190
198
191
$pesterScriptBlock = {
192
+ " Installing the latest version of Pester"
193
+ Install-Module - Name Pester - Repository PSGallery - Scope CurrentUser - AllowClobber - SkipPublisherCheck - Confirm:$false - ErrorAction Stop - Force - Verbose:$false
194
+ Import-Module - Name Pester - Verbose:$false - Force
199
195
" Getting correctly cased FullName for $outputModDir ..."
200
196
$outputModDir = (Get-ChildItem (Split-Path $outputModDir - Parent) - Directory | Where-Object {$_.Name -eq (Get-Item $outputModDir ).Name}).FullName
201
197
" FullName resolved to $outputModDir ..."
You can’t perform that action at this time.
0 commit comments