hurl/bin/environment.ps1

23 lines
500 B
PowerShell
Raw Normal View History

2022-12-28 12:20:27 +03:00
Set-StrictMode -Version latest
$ErrorActionPreference = 'Stop'
2022-09-27 10:04:21 +03:00
powershell write-host -foregroundcolor Cyan "----- context -----"
# get windows infos
Get-ComputerInfo -Property WindowsProductName,WindowsVersion,OsHardwareAbstractionLayer
2022-09-28 18:41:43 +03:00
# get powershell infos
(Get-Variable PSVersionTable -ValueOnly).PSVersion
# get vcpkg infos
vcpkg --version
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
# get python infos
python -V
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }
# get cargo info
cargo --version
2022-12-28 12:20:27 +03:00
if ($LASTEXITCODE) { Throw }