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 [tox] |
| 5 envlist = py{26,27,33,34,35}, pypy{24,26,3_24} |
| 6 skip_missing_interpreters = True |
| 7 |
| 8 [testenv] |
| 9 usedevelop = True |
| 10 |
| 11 deps = |
| 12 # https://requires.io/github/nedbat/coveragepy/requirements/ |
| 13 nose==1.3.7 |
| 14 mock==1.3.0 |
| 15 PyContracts==1.7.6 |
| 16 py26: unittest2==1.1.0 |
| 17 py{26,27,33,34}: gevent==1.1b5 |
| 18 py{26,27,33,34}: eventlet==0.17.4 |
| 19 py{26,27,33,34,35}: greenlet==0.4.9 |
| 20 |
| 21 passenv = * |
| 22 setenv = |
| 23 pypy,pypy{24,26,3_24}: COVERAGE_NO_EXTENSION=no C extensions under PyPy |
| 24 |
| 25 commands = |
| 26 python setup.py --quiet clean develop |
| 27 |
| 28 # Create tests/zipmods.zip |
| 29 # Install the egg1 egg |
| 30 # Remove the C extension so that we can test the PyTracer |
| 31 python igor.py zip_mods install_egg remove_extension |
| 32 |
| 33 # Test with the PyTracer |
| 34 python igor.py test_with_tracer py {posargs} |
| 35 |
| 36 # Build the C extension and test with the CTracer |
| 37 python setup.py --quiet build_ext --inplace |
| 38 python igor.py test_with_tracer c {posargs} |
| 39 |
| 40 [testenv:pypy] |
| 41 basepython = pypy |
| 42 |
| 43 [testenv:pypy24] |
| 44 basepython = pypy2.4 |
| 45 |
| 46 [testenv:pypy26] |
| 47 basepython = pypy2.6 |
| 48 |
| 49 [testenv:pypy3_24] |
| 50 basepython = pypy3-2.4 |
| 51 |
| 52 |
| 53 # Yes, pep8 will read its settings from tox.ini! |
| 54 [pep8] |
| 55 # E265: block comment should start with '# ' |
| 56 # E301 expected 1 blank line, found 0 |
| 57 # E401 multiple imports on one line |
| 58 # The rest are the default ignored warnings. |
| 59 ignore = E265,E123,E133,E226,E241,E242,E301,E401 |
| 60 max-line-length = 100 |
OLD | NEW |