2015-03-17 17:21:34 +03:00
|
|
|
[tox]
|
2015-03-18 15:50:45 +03:00
|
|
|
envlist=
|
2016-02-28 17:01:20 +03:00
|
|
|
coveralls, pylint, flake8, pydocstyle, py26, py27, py33, py34, py35, pypy, pypy3
|
2015-03-17 17:21:34 +03:00
|
|
|
|
2015-03-18 01:38:54 +03:00
|
|
|
[testenv]
|
|
|
|
deps=
|
|
|
|
unittest2
|
2015-10-12 17:52:30 +03:00
|
|
|
commands=
|
2016-11-02 20:06:12 +03:00
|
|
|
unit2 discover tests
|
2015-03-18 01:38:54 +03:00
|
|
|
|
2015-03-18 15:50:45 +03:00
|
|
|
[testenv:coveralls]
|
2016-11-02 20:16:55 +03:00
|
|
|
basepython=python3.5
|
2015-07-21 09:42:21 +03:00
|
|
|
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
2015-03-18 15:50:45 +03:00
|
|
|
deps=
|
|
|
|
{[testenv]deps}
|
2016-11-01 11:49:44 +03:00
|
|
|
cython
|
2015-03-18 15:50:45 +03:00
|
|
|
coverage
|
2015-03-18 01:38:54 +03:00
|
|
|
coveralls
|
2015-03-18 15:50:45 +03:00
|
|
|
commands=
|
2016-11-02 21:12:41 +03:00
|
|
|
{envpython} setup.py install
|
2015-03-18 01:38:54 +03:00
|
|
|
coverage erase
|
2016-11-02 18:21:40 +03:00
|
|
|
coverage run --rcfile=./.coveragerc -m unittest2 discover tests
|
2015-07-21 09:48:50 +03:00
|
|
|
coveralls
|
2015-03-18 15:50:45 +03:00
|
|
|
|
2015-03-18 17:09:22 +03:00
|
|
|
[testenv:pylint]
|
2015-03-18 16:53:08 +03:00
|
|
|
deps=
|
|
|
|
pylint
|
|
|
|
commands=
|
2015-08-31 16:31:38 +03:00
|
|
|
- pylint -f colorized --rcfile=./.pylintrc dependency_injector
|
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
|
|
|
deps=
|
|
|
|
flake8
|
|
|
|
commands=
|
2016-02-08 01:29:41 +03:00
|
|
|
flake8 --max-complexity=10 dependency_injector/
|
|
|
|
flake8 --max-complexity=10 examples/
|
2015-03-18 16:53:08 +03:00
|
|
|
|
2016-02-28 17:01:20 +03:00
|
|
|
[testenv:pydocstyle]
|
2015-03-18 16:53:08 +03:00
|
|
|
deps=
|
2016-02-28 17:01:20 +03:00
|
|
|
pydocstyle
|
2015-03-18 16:53:08 +03:00
|
|
|
commands=
|
2016-02-28 17:01:20 +03:00
|
|
|
pydocstyle dependency_injector/
|
|
|
|
pydocstyle examples/
|