From 5082ba5b804967b5ee237f69160cb8b6f3bcff06 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 22 May 2018 15:29:40 +0100 Subject: [PATCH] Fix CentOS 6 Travis CI tests See https://github.com/pypa/setuptools/issues/937 Signed-off-by: Tim Waugh --- test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test.sh b/test.sh index d244cf7d..687caefb 100755 --- a/test.sh +++ b/test.sh @@ -65,7 +65,12 @@ $RUN $PYTHON setup.py install $RUN $PIP install -r tests/requirements.txt # CentOS needs to have setuptools updates to make pytest-cov work -if [[ $OS != "fedora" ]]; then $RUN $PIP install -U setuptools; fi +if [[ $OS != "fedora" ]]; then + $RUN $PIP install -U setuptools + # Watch out for https://github.com/pypa/setuptools/issues/937 + $RUN curl -O https://bootstrap.pypa.io/2.6/get-pip.py + $RUN $PYTHON get-pip.py +fi # Run tests $RUN pytest -vv tests --cov koji_containerbuild