Skip to content

Commit

Permalink
feat(tests): Do not force maintainers to have SCOOP_HELPERS (#3604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash258 authored and r15ch13 committed Aug 21, 2019
1 parent 96fef58 commit f52b339
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/bin/init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name Pester -Ski
Install-Module -Repository PSGallery -Scope CurrentUser -Force -Name PSScriptAnalyzer,BuildHelpers

if ($env:CI_WINDOWS -eq $true) {
# Do not force maintainers to have this inside environment appveyor config
if (-not $env:SCOOP_HELPERS) {
$env:SCOOP_HELPERS = 'C:\projects\helpers'
[System.Environment]::SetEnvironmentVariable('SCOOP_HELPERS', $env:SCOOP_HELPERS, 'Machine')
}

if(!(Test-Path $env:SCOOP_HELPERS)) {
New-Item -ItemType Directory -Path $env:SCOOP_HELPERS
}
Expand Down

0 comments on commit f52b339

Please sign in to comment.