Travis-ci builds - Add max-time to transfer.sh upload

To avoid the build being marked errored when the upload takes
too much time.
This commit is contained in:
Ale Martinez
2020-05-09 20:05:31 -03:00
parent 8627f26b2c
commit caaae923ad
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish bi
aws s3 rm s3://goldencheetah-binaries/Linux --recursive # keep only the last one
aws s3 cp --acl public-read $FINAL_NAME s3://goldencheetah-binaries/Linux/$FINAL_NAME
else
curl --upload-file $FINAL_NAME https://transfer.sh/$FINAL_NAME
curl --max-time 300 --upload-file $FINAL_NAME https://transfer.sh/$FINAL_NAME
fi
cd ${TRAVIS_BUILD_DIR}

View File

@@ -51,7 +51,7 @@ if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish bi
aws s3 rm s3://goldencheetah-binaries/MacOS --recursive # keep only the last one
aws s3 cp --acl public-read $FINAL_NAME s3://goldencheetah-binaries/MacOS/$FINAL_NAME
else
curl --upload-file $FINAL_NAME https://transfer.sh/$FINAL_NAME
curl --max-time 300 --upload-file $FINAL_NAME https://transfer.sh/$FINAL_NAME
fi
echo "Make sure we are back in the Travis build directory"