2015-09-02 15:23:43 -04:00
|
|
|
[tox]
|
2017-01-05 12:27:30 +11:00
|
|
|
envlist = docs,linters,py35,py27
|
2016-09-07 19:47:03 +10:00
|
|
|
minversion = 2.0
|
2015-09-02 15:23:43 -04:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = True
|
|
|
|
install_command = pip install -U {opts} {packages}
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2016-03-11 13:30:48 +11:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2017-01-05 12:27:30 +11:00
|
|
|
# NOTE: If py35 fails with "db type could not be determined", delete
|
|
|
|
# .testrepository and try again. Running py35 before py27 is OK, but not the
|
2016-09-07 19:47:03 +10:00
|
|
|
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
|
|
|
commands = python setup.py testr --slowest --testr-args="{posargs}"
|
2015-09-02 15:23:43 -04:00
|
|
|
|
2016-09-07 14:57:20 +10:00
|
|
|
[testenv:linters]
|
2016-09-14 11:02:38 +00:00
|
|
|
commands = yamllint configuration.yaml
|
2016-09-07 14:57:20 +10:00
|
|
|
flake8
|
|
|
|
|
2015-09-02 15:23:43 -04:00
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
2017-01-04 16:28:24 +11:00
|
|
|
[testenv:venv2]
|
|
|
|
basepython = python2
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:venv3]
|
|
|
|
basepython = python3
|
|
|
|
commands = {posargs}
|
|
|
|
|
2015-09-02 15:23:43 -04:00
|
|
|
[testenv:docs]
|
|
|
|
commands = python setup.py build_sphinx
|
2016-09-07 14:57:20 +10:00
|
|
|
|
|
|
|
[flake8]
|
2016-10-06 11:44:31 +11:00
|
|
|
exclude=.tox,doc/source/conf.py,rolls/owners.py
|