Skip to content
Snippets Groups Projects
tox.ini 918 B
Newer Older
  • Learn to ignore specific revisions
  • addopts = --doctest-modules --doctest-glob='*.rst' -m 'not packaging'
    
              diceware tests docs README.rst
    
    
    ulif's avatar
    ulif committed
    [tox]
    
    envlist = flake8, pypy, py26, py27, py33, py34, py35, py36, coverage, pkg
    
    ulif's avatar
    ulif committed
    
    [testenv]
    
    usedevelop=True
    
    ulif's avatar
    ulif committed
    recreate=True
    
    # py.test 2.8.2 cannot handle --doctest-modules and autouse fixtures
    
    ulif's avatar
    ulif committed
    # See https://github.com/pytest-dev/pytest/issues/1057
    
    deps=pytest>=2.8.3
    
    commands=
    
    ulif's avatar
    ulif committed
      py.test
    
    ulif's avatar
    ulif committed
    
    
    ulif's avatar
    ulif committed
    [testenv:py26]
    # versions still supporting py26.
    deps=
      pytest==3.2.5
      setuptools==36.8.0
    
    [testenv:py33]
    # versions still supporting py33.
    deps=
      pytest==3.2.5
    
    
    ulif's avatar
    ulif committed
    [testenv:flake8]
    deps=flake8
    
    commands=flake8 diceware tests setup.py
    
    ulif's avatar
    ulif committed
    
    [testenv:coverage]
    deps=coverage
    commands=
      coverage erase
      coverage run setup.py test
    
      coverage report --include='diceware*,setup.py' -m --fail-under=100
    
    
    [testenv:pkg]
    # run only tests marked as 'packaging'-related
    deps=
      pytest==3.2.5
    commands=
      py.test -m 'packaging'