mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
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:
@@ -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}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user