From d7a78fe1212af26bdbfa38802bc3038eded0814f Mon Sep 17 00:00:00 2001 From: Hyunjin Song Date: Thu, 10 Oct 2019 14:22:42 +0900 Subject: [PATCH] Specify timeout for transfer.sh uploads Prevents "No output has been received in the last 10m0s" errors on Travis CI. --- .travis/script.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis/script.sh b/.travis/script.sh index 70391a762..b723f5dd0 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -42,5 +42,7 @@ else fi echo "Uploading $PACKAGE to transfer.sh..." - curl --upload-file "$PACKAGE" "https://transfer.sh/$PACKAGE" || true + # Limit the connection time to 3 minutes and total upload time to 5 minutes + # Otherwise the build may hang + curl --connect-timeout 180 --max-time 300 --upload-file "$PACKAGE" "https://transfer.sh/$PACKAGE" || true fi