Skip to content

Commit

Permalink
Force Python 3 tox on Travis CI
Browse files Browse the repository at this point in the history
pip may point to Python 2 but setup.py requires Python 3. Tox sdist may
fail when tox is installed for Python 2 on Travis CI.

https://github.com/python-ldap/python-ldap/pull/362

Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
Christian Heimes authored and GitHub committed Jun 29, 2020
1 parent 0890738 commit 6f06059
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ env:
- TOX_TESTENV_PASSENV="CFLAGS CI WITH_GCOV"

install:
- pip install "pip>=7.1.0"
- pip install tox-travis tox codecov
- python3 -m pip install "pip>=7.1.0"
- python3 -m pip install tox-travis tox codecov

script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" tox
script: CFLAGS="$CFLAGS_warnings $CFLAGS_std" python3 -m tox

0 comments on commit 6f06059

Please sign in to comment.