Skip to content

Commit

Permalink
Fix CentOS 6 Travis CI tests
Browse files Browse the repository at this point in the history
See pypa/setuptools#937

Signed-off-by: Tim Waugh <twaugh@redhat.com>
  • Loading branch information
twaugh authored and lcarva committed May 31, 2018
1 parent e336602 commit 44e7785
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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
if [[ $PYTHON_VERSION -gt 2 ]]; then $RUN $PIP install -r requirements-py3.txt; fi

# Run tests
Expand Down

0 comments on commit 44e7785

Please sign in to comment.