From a1ab1dc7fe19b231de3629cbaeb9467a2b9300e5 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Thu, 7 Jun 2018 15:28:45 +0100 Subject: [PATCH 1/2] Add easily understood error messages to the prebuild script instead of vague/silent failures. --- CI/before_script.msvc.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CI/before_script.msvc.sh b/CI/before_script.msvc.sh index 16def0f8c..dd8d830b8 100644 --- a/CI/before_script.msvc.sh +++ b/CI/before_script.msvc.sh @@ -1,5 +1,23 @@ #!/bin/bash +MISSINGTOOLS=0 + +command -v 7z >/dev/null 2>&1 || { echo "Error: 7z (7zip) is not on the path."; MISSINGTOOLS=1; } +command -v cmake >/dev/null 2>&1 || { echo "Error: cmake (CMake) is not on the path."; MISSINGTOOLS=1; } + +if [ $MISSINGTOOLS -ne 0 ]; then + exit 1 +fi + +WORKINGDIR="$(pwd)" +case "$WORKINGDIR" in + *[[:space:]]*) + echo "Error: Working directory contains spaces." + exit 1 + ;; +esac + + set -euo pipefail APPVEYOR=${APPVEYOR:-} From 937cbfa0a12ae3de5de08198472225cc1a3082bb Mon Sep 17 00:00:00 2001 From: Bret Curtis Date: Thu, 7 Jun 2018 17:09:39 +0200 Subject: [PATCH 2/2] small commit to rigger AV --- CI/before_script.msvc.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/CI/before_script.msvc.sh b/CI/before_script.msvc.sh index dd8d830b8..38b304bf9 100644 --- a/CI/before_script.msvc.sh +++ b/CI/before_script.msvc.sh @@ -17,7 +17,6 @@ case "$WORKINGDIR" in ;; esac - set -euo pipefail APPVEYOR=${APPVEYOR:-}