setup-static-analysis: Add wrapper to retry dependancy installation.

This commit is contained in:
Aditya Bansal 2017-06-16 14:31:16 +05:30 committed by Steve Howell
parent 5f74dc86a9
commit 18eeb962fe
1 changed files with 10 additions and 2 deletions

View File

@ -4,5 +4,13 @@ set -x
# We only need mypy and the python 3 compatibility checkers in this # We only need mypy and the python 3 compatibility checkers in this
# build, so we just install those directly, skipping provision. # build, so we just install those directly, skipping provision.
pip install --no-deps -r requirements/mypy.txt
pip install --no-deps -r requirements/py3k.txt if ! pip install --no-deps -r requirements/mypy.txt; then
echo "\`pip install --no-deps -r requirements/mypy.txt\`: Failure occured while trying to perform dependancy installation, Retrying..."
pip install --no-deps -r requirements/mypy.txt
fi
if ! pip install --no-deps -r requirements/py3k.txt; then
echo "\`pip install --no-deps -r requirements/py3k.txt\`: Failure occured while trying to perform dependancy installation, Retrying..."
pip install --no-deps -r requirements/py3k.txt
fi