From 2791ac7491bddbfabca5e3f5e8611607b05c5abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 31 Dec 2014 11:04:24 +0100 Subject: [PATCH] fail the whole script when nuget fails --- thirdparty/fetch-thirdparty-deps.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thirdparty/fetch-thirdparty-deps.sh b/thirdparty/fetch-thirdparty-deps.sh index a823571efe..dd4c63c2fa 100755 --- a/thirdparty/fetch-thirdparty-deps.sh +++ b/thirdparty/fetch-thirdparty-deps.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# Die on any error for Travis CI to automatically retry: +set -e + if [ ! -f StyleCop.dll ]; then echo "Fetching StyleCop files from nuget" nuget install StyleCop.MSBuild -Version 4.7.49.0