Ticket #7228: 7228-adi-1.diff

File 7228-adi-1.diff, 1.8 KB (added by Adi Roiban, 6 years ago)
  • new file tox.ini

    diff --git tox.ini tox.ini
    new file mode 100644
    index 0000000..eb3932b
    - +  
     1; tox configuration file for running tests similar to buildbot builders.
     2[tox]
     3toxworkdir=build/
     4envlist=py{26,27,33},select_gc,without_modules,pyflakes,twistedchecker,api_docs,narrative_docs
     5skipsdist=True
     6
     7
     8[testenv]
     9basepython =
     10    defaselect_gc,without_modules,pyflakes,twistedchecker,api_docs,narrative_docsult: python2.7
     11    py26: python2.6
     12    py27: python2.7
     13    py33: python3.3
     14
     15
     16install_command = pip install {opts} -Ue {packages}
     17deps=.[dev]
     18
     19commands =
     20    py{26,27}: {toxinidir}/bin/trial {posargs:twisted}
     21
     22    py33: {toxinidir}/admin/run-python3-tests {posargs:}
     23
     24    without_modules: {toxinidir}/bin/trial --without-module OpenSSL --without-module Crypto {posargs:twisted}
     25
     26    select_gc: {toxinidir}/bin/trial --force-gc {posargs:twisted}
     27
     28    api_docs: {toxinidir}/bin/admin/build-apidocs {toxinidir} apidocs
     29
     30    twistedchecker: twistedchecker {posargs:twisted}
     31
     32    pyflakes: pyflakes {toxinidir}/{posargs:twisted}
     33
     34    narrative_docs: sphinx-build -aW -b html -d {toxinidir}/docs/_build docs {toxinidir}/docs/_build/
     35
     36
     37[testenv:py33]
     38; .dev component is not define yet and ready for Python3
     39install_command = pip install {opts} {packages} -e .
     40deps=zope.interface >= 4.0.2
     41
     42
     43[testenv:coverage]
     44commands=
     45    coverage erase
     46    coverage run --omit {toxinidir}/*_trial_temp/* --branch {toxinidir}/bin/trial --reporter=bwverbose {posargs:twisted}
     47    coverage report
  • new file twisted/topfiles/7228.feature

    diff --git twisted/topfiles/7228.feature twisted/topfiles/7228.feature
    new file mode 100644
    index 0000000..652a942
    - +  
     1Add a tox.ini file to simplify testing with virtualenvs.
     2 No newline at end of file