From 392f84afff36087e0a57dec2d9c399481df6a135 Mon Sep 17 00:00:00 2001 From: pentarctagon Date: Fri, 3 Jan 2020 08:55:41 -0600 Subject: [PATCH] Fail quickly if dependencies fail to install. The chocolatey package manager seems to semi-frequently have 503 errors. Ideally there's a way to cache these packages on Windows rather than re-downloading them every time. --- utils/travis/steps/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/travis/steps/install.sh b/utils/travis/steps/install.sh index ccf1f6b4438..75178f6542e 100755 --- a/utils/travis/steps/install.sh +++ b/utils/travis/steps/install.sh @@ -38,6 +38,12 @@ elif [ "$TRAVIS_OS_NAME" = "windows" ]; then mv external-VC15 external cd $start export PATH="/c/Python36:"$PATH":/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/amd64:$start/../external/dll" + if [ "$(which python3)" == "" ] || [ ! -d "../external" ]; then + echo "Failed to retrieve dependencies!" + exit 1 + else + echo "Dependencies retrieved and installed!" + fi else if [ "$NLS" != "true" ]; then echo "po/" >> .dockerignore