Specify timeout for transfer.sh uploads

Prevents "No output has been received in the last 10m0s" errors on Travis CI.
This commit is contained in:
Hyunjin Song
2019-10-10 14:22:42 +09:00
committed by GitHub
parent 91a38a922d
commit d7a78fe121

View File

@@ -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