mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
8f0481f19a
Check the exit codes of various commands and fail appropriatly upon error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/392>
20 lines
731 B
PowerShell
20 lines
731 B
PowerShell
Get-Date
|
|
Write-Host "Installing Chocolatey"
|
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
|
Import-Module "$env:ProgramData\chocolatey\helpers\chocolateyProfile.psm1"
|
|
Update-SessionEnvironment
|
|
|
|
Write-Host "Installing Chocolatey packages"
|
|
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
|
$cmake_install = $?
|
|
|
|
choco install -y git --params "/NoAutoCrlf /NoCredentialManager /NoShellHereIntegration /NoGuiHereIntegration /NoShellIntegration"
|
|
$git_install = $?
|
|
|
|
choco install -y python3 git-lfs 7zip
|
|
$rest_installs = $?
|
|
|
|
if (!($cmake_install -and $git_install -and $rest_installs)) {
|
|
Write-Host "Failed to install some dependencies from choco"
|
|
Exit 1
|
|
}
|