This repository was archived by the owner on Apr 28, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ image: WMF 5
55init :
66- ps : Install-PackageProvider NuGet -Force
77- ps : (new-object net.webclient).DownloadFile('https://dotnetcli.blob.core.windows.net/dotnet/Sdk/rel-1.0.0/dotnet-dev-win-x64.latest.exe', "c:/dotnet-install.exe")
8- - ps : Start-Process c:\dotnet-install.exe -ArgumentList " /install"," /quiet" -Wait
8+ - cmd : c:\dotnet-install.exe /install /quiet
99install :
1010- ps : Install-Module platyPS -Force
1111- cmd : git submodule update --init --recursive
@@ -48,6 +48,10 @@ test_script:
4848- ps : Register-PSRepository -Name test -SourceLocation $pwd\bin
4949- ps : Install-Module -Name Docker -Repository test -Force
5050- ps : Import-Module Docker
51+ - ps : |
52+ if (!(gcm -Module Docker)){
53+ throw "Module failed to load: no commands found."
54+ }
5155 - ps : git checkout -- src/Docker.PowerShell/Docker.psd1
5256- ps : git checkout -- src/Docker.PowerShell/project.json
5357- ps : git config core.autocrlf true
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ $PSModuleRoot = $PSModule.ModuleBase
1414
1515# Import the appropriate nested binary module based on the current PowerShell version
1616$binaryModuleRoot = $PSModuleRoot
17- if ($PSVersionTable [" PSEdition" ] -ne ' Desktop ' )
17+ if ($PSVersionTable [" PSEdition" ] -eq ' Core ' )
1818{
1919 $binaryModuleRoot = Join-Path - Path $PSModuleRoot - ChildPath ' coreclr'
2020}
You can’t perform that action at this time.
0 commit comments