OLD | NEW |
(Empty) | |
| 1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 |
| 2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt |
| 3 |
| 4 # An experiment in using tox to install the sdist, and do the pytracer/ctracer |
| 5 # split. Doesn't yet work because the working tree is in the import path, so |
| 6 # "import coverage" finds the working tree instead of the sdist-installed code. |
| 7 # This can be fixed one of two ways: |
| 8 # |
| 9 # 1. By changing to a "src" layout, so that "import coverage" won't work in the |
| 10 # working tree, or |
| 11 # |
| 12 # 2. By removing the "__init__.py" from the tests directory, so that nose won't |
| 13 # add the working tree to the path. This will also mean changing a number of |
| 14 # import statements in the tests directory. |
| 15 |
| 16 [tox] |
| 17 envlist = py{26,27,33,34,35}-{c,py}tracer, pypy{24,26,3_24}-pytracer |
| 18 skip_missing_interpreters = True |
| 19 |
| 20 [testenv] |
| 21 commands = |
| 22 # Create tests/zipmods.zip, install the egg1 egg |
| 23 python igor.py zip_mods install_egg |
| 24 |
| 25 # Remove the C extension so that we can test the PyTracer |
| 26 pytracer: python igor.py remove_extension |
| 27 pytracer: python igor.py test_with_tracer py {posargs} |
| 28 |
| 29 ctracer: python igor.py test_with_tracer c {posargs} |
| 30 |
| 31 deps = |
| 32 # https://requires.io/github/nedbat/coveragepy/requirements/ |
| 33 nose==1.3.7 |
| 34 mock==1.3.0 |
| 35 PyContracts==1.7.6 |
| 36 py26: unittest2==1.1.0 |
| 37 py{26,27}: gevent==1.0.2 |
| 38 py{26,27}: eventlet==0.17.4 |
| 39 py{26,27,33,34,35}: greenlet==0.4.9 |
| 40 |
| 41 passenv = COVERAGE_* |
| 42 |
| 43 [testenv:pypy] |
| 44 basepython = pypy |
| 45 |
| 46 [testenv:pypy24] |
| 47 basepython = pypy2.4 |
| 48 |
| 49 [testenv:pypy26] |
| 50 basepython = pypy2.6 |
| 51 |
| 52 [testenv:pypy3_24] |
| 53 basepython = pypy3-2.4 |
| 54 |
| 55 |
| 56 # Yes, pep8 will read its settings from tox.ini! |
| 57 [pep8] |
| 58 # E265: block comment should start with '# ' |
| 59 # E301 expected 1 blank line, found 0 |
| 60 # E401 multiple imports on one line |
| 61 # The rest are the default ignored warnings. |
| 62 ignore = E265,E123,E133,E226,E241,E242,E301,E401 |
| 63 max-line-length = 100 |
OLD | NEW |