Skip to content

Commit

Permalink
Run Travis tests with PyPy
Browse files Browse the repository at this point in the history
To my surprose, python-ldap works just fine with PyPy2. For Python 3,
PyPy-5.9 (Python 3.5) is required. Fedora's and Ubuntu's PyPy 5.5 is
too old (Python 3.3).

https://github.com/python-ldap/python-ldap/pull/122
Signed-off-by: Christian Heimes <cheimes@redhat.com>
  • Loading branch information
Christian Heimes authored and Petr Viktorin committed Dec 13, 2017
1 parent f94619f commit 5b8b265
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ matrix:
env:
- TOXENV=py36
- WITH_GCOV=1
- python: pypy
env:
- TOXENV=pypy
- python: 3.7-dev
env:
- TOXENV=py37
Expand All @@ -52,6 +55,8 @@ matrix:
- env:
- TOXENV=py37
- WITH_GCOV=1
- env:
- TOXENV=pypy

env:
global:
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ passenv = {[testenv]passenv}
setenv = {[testenv:py2-nosasltls]setenv}
commands = {[testenv:py2-nosasltls]commands}

[testenv:pypy]
# PyPy doesn't have working setup.py test
deps = pytest
commands = {envpython} -m pytest

[testenv:pypy35]
# PyPy-5.9.0
basepython = pypy3.5
deps = {[testenv:pypy]deps}
commands = {[testenv:pypy]commands}

[testenv:coverage-report]
deps = coverage
skip_install = true
Expand Down

0 comments on commit 5b8b265

Please sign in to comment.