Merge "Add .editorconfig"
[releng/lftools.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4     coala,
5     docs,
6     docs-linkcheck,
7     py2,
8     py3
9
10 [testenv]
11 deps =
12     -r{toxinidir}/requirements.txt
13     pytest
14     pytest-click
15     pytest-datafiles
16 commands = pytest
17
18 [testenv:coala]
19 basepython = python3
20 deps =
21     coala
22     coala-bears
23 commands =
24     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
25     coala --non-interactive
26
27 [testenv:docs]
28 deps = -rrequirements.txt
29 commands =
30     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
31     echo "Generated docs available in {toxinidir}/docs/_build/html"
32 whitelist_externals = echo
33
34 [testenv:docs-linkcheck]
35 deps = -rrequirements.txt
36 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck