2015-03-17 17:21:34 +03:00
|
|
|
[tox]
|
2015-03-18 15:50:45 +03:00
|
|
|
envlist=
|
2015-03-26 17:56:49 +03:00
|
|
|
dev, coveralls, pylint, flake8, pep257, py26, py27, py32, py33, py34, pypy, pypy3
|
2015-03-17 17:21:34 +03:00
|
|
|
|
2015-03-18 01:38:54 +03:00
|
|
|
[testenv]
|
|
|
|
deps=
|
|
|
|
unittest2
|
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:dev]
|
2015-03-18 20:05:31 +03:00
|
|
|
basepython=python2.7
|
2015-03-18 15:50:45 +03:00
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
|
|
|
coverage
|
2015-03-18 01:38:54 +03:00
|
|
|
commands=
|
|
|
|
coverage erase
|
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
|
2015-03-18 15:50:45 +03:00
|
|
|
coverage html --rcfile=./.coveragerc
|
|
|
|
|
|
|
|
[testenv:coveralls]
|
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
|
|
|
coverage
|
2015-03-18 01:38:54 +03:00
|
|
|
coveralls
|
2015-03-18 15:50:45 +03:00
|
|
|
commands=
|
2015-03-18 01:38:54 +03:00
|
|
|
coverage erase
|
2015-03-18 15:50:45 +03:00
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover tests []
|
|
|
|
coveralls
|
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:pylint]
|
2015-03-18 16:53:08 +03:00
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
pylint
|
|
|
|
commands=
|
2015-03-18 18:06:07 +03:00
|
|
|
- pylint -f colorized --rcfile=./.pylintrc objects
|
2015-03-18 16:53:08 +03:00
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:flake8]
|
2015-03-18 16:53:08 +03:00
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=
|
2015-07-11 23:34:23 +03:00
|
|
|
flake8 --max-complexity=8 objects/
|
2015-03-18 16:53:08 +03:00
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:pep257]
|
2015-03-18 16:53:08 +03:00
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
|
|
|
pep257
|
|
|
|
commands=
|
2015-07-11 23:34:23 +03:00
|
|
|
pep257 objects/
|
2015-03-18 16:53:08 +03:00
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:py26]
|
2015-03-18 20:05:31 +03:00
|
|
|
basepython=python2.6
|
2015-03-18 15:50:45 +03:00
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
|
|
|
|
|
|
|
[testenv:py27]
|
2015-03-18 20:05:31 +03:00
|
|
|
basepython=python2.7
|
2015-03-18 15:50:45 +03:00
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
2015-03-26 01:24:08 +03:00
|
|
|
|
|
|
|
[testenv:py32]
|
|
|
|
basepython=python3.2
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
2015-03-26 02:15:41 +03:00
|
|
|
|
|
|
|
[testenv:py33]
|
|
|
|
basepython=python3.3
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
|
|
|
|
|
|
|
[testenv:py34]
|
|
|
|
basepython=python3.4
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
2015-03-26 17:56:49 +03:00
|
|
|
|
|
|
|
[testenv:pypy]
|
|
|
|
basepython=pypy
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|
|
|
|
|
|
|
|
[testenv:pypy3]
|
|
|
|
basepython=pypy3
|
|
|
|
commands=
|
|
|
|
unit2 discover tests []
|