get.porter.sh/porter@v1.3.0/scripts/test/test-windows-install.ps1 (about)

     1  $ErrorActionPreference = "Stop"
     2  
     3  $env:PATH+=";$env:USERPROFILE\.porter"
     4  
     5  & $PSScriptRoot\..\install\install-windows.ps1 -PORTER_VERSION canary
     6  porter version
     7  
     8  & $PSScriptRoot\..\install\install-windows.ps1 -PORTER_VERSION v0.23.0-beta.1
     9  if (-Not (porter version | Select-String -Pattern 'v0.23.0-beta.1' -SimpleMatch))
    10  {
    11      echo "Failed to install a specific version of porter"
    12      Exit 1
    13  }
    14  
    15  & $PSScriptRoot\..\install\install-windows.ps1  -PORTER_VERSION latest