1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27, pylint, py3
skipsdist=True
[testenv:py27]
changedir = tests
deps =
pytest
mock
commands = pytest --junit-xml={toxinidir}/python2.xml
[testenv:py3]
changedir = tests
deps = pytest
commands = pytest --junit-xml={toxinidir}/python3.xml
[testenv:pylint]
deps = pylint==1.6.1
commands = - bash {toxinidir}/pylint.sh
[flake8]
max-line-length = 120
extend-ignore = E203
|