From f4dfd49a7bc0269604ae204f158da669d3d27c03 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 6 Apr 2015 08:05:26 -0700 Subject: [PATCH] Add more retrying to Travis download. --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b4fba1166f..f4c98838bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,15 @@ before_install: - sudo apt-get update -qq - sudo apt-get install aria2 pv -qq - download_extract() { aria2c -x 16 $1 -o $2 && tar -xf $2; } - - download_extract_xz() { aria2c --file-allocation=none --timeout=120 --retry-wait=5 --max-tries=20 -Z -c $1 -o $2 && pv $2 | xz -vd | tar -x; } + - download_extract_xz() { + aria2c --file-allocation=none --timeout=120 --retry-wait=5 --max-tries=20 -Z -c $1 -o $2 && + stat -c 'ATTEMPT 1 - %s' $2 && + md5sum $2 && + aria2c --file-allocation=none --timeout=120 --retry-wait=5 --max-tries=20 -Z -c $1 -o $2 && + stat -c 'ATTEMPT 2 - %s' $2 && + md5sum $2 && + pv $2 | xz -vd | tar -x; + } # Travis uses CMake 2.8.7. We require 2.8.8. Grab latest - if [ "$CMAKE" == "TRUE" ]; then sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev -qq &&