2013-07-30 14:35:34 -04:00
|
|
|
[tox]
|
2014-01-14 20:13:39 +08:00
|
|
|
minversion = 1.6
|
|
|
|
skipsdist = True
|
2016-06-24 11:36:24 +10:00
|
|
|
envlist = validate,py27,pep8,pip-install
|
2013-07-30 14:35:34 -04:00
|
|
|
|
|
|
|
[testenv]
|
2016-06-24 11:36:24 +10:00
|
|
|
basepython = python2.7
|
2014-01-14 20:13:39 +08:00
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
2013-07-30 14:35:34 -04:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-12-26 13:51:55 +09:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-07-30 14:35:34 -04:00
|
|
|
commands =
|
|
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
2013-08-02 13:56:32 -04:00
|
|
|
|
2016-09-28 17:47:27 +02:00
|
|
|
[testenv:py27-check-uc]
|
2017-03-17 10:57:58 -04:00
|
|
|
install_command = pip install -U {opts} -c {toxinidir}/upper-constraints.txt {packages}
|
2016-09-28 17:47:27 +02:00
|
|
|
deps = -r{toxinidir}/upper-constraints.txt
|
2016-09-29 08:56:54 +02:00
|
|
|
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
|
2017-09-11 13:29:22 -06:00
|
|
|
|
|
|
|
[testenv:py35-check-uc]
|
|
|
|
basepython = python3.5
|
|
|
|
install_command = pip install -U {opts} -c {toxinidir}/upper-constraints.txt {packages}
|
|
|
|
deps = -r{toxinidir}/upper-constraints.txt
|
|
|
|
commands = check-conflicts {toxinidir}/upper-constraints.txt {toxinidir}/upper-constraints-xfails.txt
|
2016-05-12 09:37:39 -04:00
|
|
|
|
2015-06-22 19:06:23 +00:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:update]
|
|
|
|
commands = update-requirements {posargs}
|
|
|
|
|
|
|
|
[testenv:generate]
|
|
|
|
commands = generate-constraints {posargs}
|
|
|
|
|
2015-07-23 20:43:32 +00:00
|
|
|
[testenv:validate]
|
|
|
|
commands = validate-constraints {toxinidir}/global-requirements.txt {toxinidir}/upper-constraints.txt {toxinidir}/blacklist.txt
|
|
|
|
|
2016-05-12 16:15:46 -04:00
|
|
|
[testenv:validate-projects]
|
|
|
|
commands = validate-projects {toxinidir}/projects.txt
|
|
|
|
|
2013-08-02 13:56:32 -04:00
|
|
|
[testenv:pep8]
|
|
|
|
commands = flake8
|
|
|
|
|
2017-09-28 12:07:09 +10:00
|
|
|
[testenv:bashate]
|
|
|
|
whitelist_externals = bash
|
|
|
|
# E006: Line too long:
|
|
|
|
# E010: The "do" should be on same line as for
|
|
|
|
commands = bash -c "find {toxinidir}/tools \
|
|
|
|
-type f \
|
|
|
|
-name \*.sh \
|
|
|
|
-print0 | xargs -0 bashate -v -iE006,E010"
|
|
|
|
|
2015-09-29 12:15:25 +10:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
|
|
|
|
2016-06-24 11:36:24 +10:00
|
|
|
[testenv:pip-install]
|
|
|
|
recreate = True
|
|
|
|
deps = .
|
|
|
|
install_command = pip install {opts} {packages}
|
|
|
|
commands = python {toxinidir}/tools/check-install.py
|
|
|
|
|
|
|
|
[testenv:py34]
|
|
|
|
basepython = python3.4
|
|
|
|
|
|
|
|
[testenv:py35]
|
|
|
|
basepython = python3.5
|
|
|
|
|
2016-04-24 10:40:47 +02:00
|
|
|
[testenv:babel]
|
|
|
|
# Use the local upper-constraints.txt file
|
|
|
|
deps = Babel
|
|
|
|
install_command = pip install -c upper-constraints.txt {opts} {packages}
|
2016-05-04 18:56:14 +02:00
|
|
|
commands = {toxinidir}/tools/babel-test.sh
|
2016-04-24 10:40:47 +02:00
|
|
|
|
2013-08-02 13:56:32 -04:00
|
|
|
[flake8]
|
|
|
|
exclude = .venv,.git,.tox,dist,doc,*egg,build
|