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 <[email protected]>
  • Loading branch information
twaugh committed May 22, 2018
1 parent 4e06e13 commit 837d12c
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 837d12c

Please sign in to comment.