blob: 4c5e1b09967d71ef74b680a90dfeeff877c5ebf1 [file] [log] [blame]
$ErrorActionPreference = "Stop"
try {
& git submodule sync
& git submodule --quiet update --init --recursive
Write-Host -ForegroundColor Green "`n### Installing sphinx ###`n"
& cinst sphinx --source python
if ($LASTEXITCODE -and $LASTEXITCODE -ne 0) {
Write-Host -ForegroundColor Red "`n`n*** Installing dependencies failed. Exiting ... ***"
exit $LASTEXITCODE
}
} catch {
# Print a detailed error message
$FullException = ($_.Exception|format-list -force) | Out-String
Write-Host -ForegroundColor Red "`n------------------ Exception ------------------`n$FullException`n"
[Console]::Out.Flush()
# Wait a bit to make sure appveyor shows the error message
Start-Sleep 10
throw
}