Merge "Add a license header scanner"
[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     nodeenv==1.1.2
24 commands =
25     nodeenv -p
26     npm install --global remark-cli remark-lint write-good
27     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
28     coala --non-interactive
29
30 [testenv:docs]
31 deps = -rrequirements.txt
32 commands =
33     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
34     echo "Generated docs available in {toxinidir}/docs/_build/html"
35 whitelist_externals = echo
36
37 [testenv:docs-linkcheck]
38 deps = -rrequirements.txt
39 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck