Merge "[gate] allow pip caching"

This commit is contained in:
Zuul 2018-10-23 18:30:20 +00:00 committed by Gerrit Code Review
commit 860a897aee

View File

@ -54,18 +54,18 @@ function ansible_install {
jq
fi
sudo -H -E pip install --no-cache-dir --upgrade pip
sudo -H -E pip install --no-cache-dir --upgrade setuptools
sudo -H -E pip install --upgrade pip
sudo -H -E pip install --upgrade setuptools
# NOTE(lamt) Preinstalling a capped version of cmd2 to address bug:
# https://github.com/python-cmd2/cmd2/issues/421
sudo -H -E pip install --no-cache-dir --upgrade "cmd2<=0.8.7"
sudo -H -E pip install --no-cache-dir --upgrade pyopenssl
sudo -H -E pip install --upgrade "cmd2<=0.8.7"
sudo -H -E pip install --upgrade pyopenssl
# NOTE(srwilkers): Pinning ansible to 2.5.5, as pip installs 2.6 by default.
# 2.6 introduces a new command flag (init) for the docker_container module
# that is incompatible with what we have currently. 2.5.5 ensures we match
# what's deployed in the gates
sudo -H -E pip install --no-cache-dir --upgrade "ansible==2.5.5"
sudo -H -E pip install --no-cache-dir --upgrade \
sudo -H -E pip install --upgrade "ansible==2.5.5"
sudo -H -E pip install --upgrade \
ara \
yq
}