Skip to content

Commit

Permalink
Travis: add a timeout to curl downloads
Browse files Browse the repository at this point in the history
Normally Travis downloads the bootstraps in under 20 seconds; we
give it 2 minutes before we retry
  • Loading branch information
fingolfin committed Apr 14, 2020
1 parent a97dfb9 commit 6d8731d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etc/ci-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ fi
time "$SRCDIR/configure" --enable-Werror $CONFIGFLAGS
time make V=1 -j4

# download packages; instruct wget to retry several times if the
# download packages; instruct curl to retry several times if the
# connection is refused, to work around intermittent failures
WGET="wget --tries=5 --waitretry=5 --retry-connrefused"
DOWNLOAD="curl -L --retry 5 --retry-delay 5 --max-time 120 -O"
if [[ $(uname) == Darwin ]]
then
# Travis OSX builders seem to have very small download bandwidth,
# so as a workaround, we only test the minimal set of packages there.
# On the upside, it's good to test that, too!
make bootstrap-pkg-minimal DOWNLOAD="$WGET"
make bootstrap-pkg-minimal DOWNLOAD="$DOWNLOAD"
else
make bootstrap-pkg-full DOWNLOAD="$WGET"
make bootstrap-pkg-full DOWNLOAD="$DOWNLOAD"
fi

# check that GAP is at least able to start
Expand Down

0 comments on commit 6d8731d

Please sign in to comment.