OLD | NEW |
(Empty) | |
| 1 # Tox (http://tox.testrun.org/) is a tool for running tests |
| 2 # in multiple virtualenvs. This configuration file will run the |
| 3 # test suite on all supported python versions. To use it, "pip install tox" |
| 4 # and then run "tox" from this directory. |
| 5 |
| 6 [tox] |
| 7 envlist = py25, py26, py27, py31, py32, py33, pypy |
| 8 |
| 9 [testenv] |
| 10 commands = |
| 11 {envpython} setup.py --quiet clean develop |
| 12 |
| 13 # Create tests/zipmods.zip |
| 14 # Install the egg1 egg |
| 15 # Remove the C extension so that we can test the PyTracer |
| 16 {envpython} igor.py zip_mods install_egg remove_extension |
| 17 |
| 18 # Test with the PyTracer |
| 19 {envpython} igor.py test_with_tracer py {posargs} |
| 20 |
| 21 # Build the C extension and test with the CTracer |
| 22 {envpython} setup.py --quiet build_ext --inplace |
| 23 {envpython} igor.py test_with_tracer c {posargs} |
| 24 |
| 25 deps = |
| 26 nose |
| 27 mock |
| 28 |
| 29 [testenv:pypy] |
| 30 # PyPy has no C extensions |
| 31 setenv = |
| 32 COVERAGE_NO_EXTENSION=1 |
OLD | NEW |