From 1e3a470dcc35befcf7787e8e3ceb04bcce2ada9b Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Thu, 31 May 2018 17:11:10 +0100
Subject: [PATCH] CI: Make pip retry failed downloads.

---
 .ci/test_template.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.ci/test_template.sh b/.ci/test_template.sh
index 1bce54487..dd3e00226 100644
--- a/.ci/test_template.sh
+++ b/.ci/test_template.sh
@@ -14,12 +14,12 @@ fi;
 
 source /test.venv/bin/activate
 
-pip install -r requirements.txt
-pip install -r requirements-extra.txt
-pip install -r requirements-dev.txt
+pip install --retries 10 -r requirements.txt
+pip install --retries 10 -r requirements-extra.txt
+pip install --retries 10 -r requirements-dev.txt
 
 # style stage
-if [ "$TEST_STYLE"x != "x" ]; then pip install pylint flake8; fi;
+if [ "$TEST_STYLE"x != "x" ]; then pip install --retries 10 pylint flake8; fi;
 if [ "$TEST_STYLE"x != "x" ]; then flake8                           fsl || true; fi;
 if [ "$TEST_STYLE"x != "x" ]; then pylint --output-format=colorized fsl || true; fi;
 if [ "$TEST_STYLE"x != "x" ]; then exit 0; fi
-- 
GitLab