File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,9 @@ if ($Scope -in $AzureScopes) {
117
117
118
118
if ($Scope -in $StackScopes ) {
119
119
120
- # Download and add AzureRM.Profile 3.4.1 to PSModulePath
121
- [System.String ]$SavePath = (Join-Path - Path $PSScriptRoot - ChildPath " tmp" )
122
- if (-not (Test-Path $SavePath )) {
123
- New-Item - Path $SavePath - ItemType Directory - Force | Out-Null
124
- Save-Module - Name AzureRM.Profile - RequiredVersion 3.4 .1 - Repository PSGallery - Path $SavePath | Out-Null
125
- Save-Module - Name AzureRM.Resources - RequiredVersion 4.4 .1 - Repository PSGallery - Path $SavePath | Out-Null
126
- }
127
-
128
- $oldModulePath = $env: PSModulePath.Clone ()
129
- [Environment ]::SetEnvironmentVariable(" PSModulePath" , " $env: PSModulePath ;$SavePath " )
120
+ $ARMRoot = " $PSScriptRoot \..\..\src\Stack\$BuildConfig \ResourceManager\AzureResourceManager"
121
+ Import-Module " $ARMRoot \AzureRM.Profile\AzureRM.Profile.psd1"
122
+ Import-Module " $ARMRoot \AzureRM.Resources\AzureRM.Resources.psd1" ;
130
123
131
124
# All admin modules
132
125
$AllStackModules = @ (
@@ -151,6 +144,5 @@ if ($Scope -in $StackScopes) {
151
144
[System.String []]$ModulesToTest = $AllStackModules | Where-Object { ! ($_ -in $IgnoredStackModules ) }
152
145
Test-Stack - BuildConfig $BuildConfig - Modules $ModulesToTest
153
146
154
- [Environment ]::SetEnvironmentVariable(" PSModulePath" , $oldModulePath )
155
147
}
156
148
You can’t perform that action at this time.
0 commit comments