2015-09-02 15:23:43 -04:00
|
|
|
[tox]
|
2019-05-28 13:45:13 +10:00
|
|
|
envlist = docs,linters,py35,py37
|
|
|
|
minversion = 3.1.0
|
2015-09-02 15:23:43 -04:00
|
|
|
skipsdist = True
|
2019-05-28 13:45:13 +10:00
|
|
|
ignore_basepython_conflict=true
|
2015-09-02 15:23:43 -04:00
|
|
|
|
|
|
|
[testenv]
|
2018-08-29 16:16:47 +10:00
|
|
|
basepython = python3
|
2015-09-02 15:23:43 -04:00
|
|
|
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
|
2018-07-04 14:27:42 +07:00
|
|
|
commands = stestr run --slowest {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}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2018-11-06 08:51:02 -05:00
|
|
|
commands = sphinx-build -v -W -b html -d doc/build/doctrees doc/source doc/build/html
|
2016-09-07 14:57:20 +10:00
|
|
|
|
2018-09-05 12:55:06 +10:00
|
|
|
[testenv:ci-checks-review]
|
2019-08-29 17:05:09 +00:00
|
|
|
commands = ci-check-all-candidate-files -v -v {posargs:--HEAD}
|
2018-09-05 12:55:06 +10:00
|
|
|
|
|
|
|
[testenv:ci-checks-election]
|
2018-07-26 12:06:11 +10:00
|
|
|
commands = ci-check-all-candidate-files
|
|
|
|
|
2016-09-07 14:57:20 +10:00
|
|
|
[flake8]
|
2018-01-09 21:25:32 +00:00
|
|
|
exclude=.tox,doc/source/conf.py
|