Verify lftools scripts have license headers
[releng/lftools.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4     coala,
5     docs,
6     docs-linkcheck,
7     license,
8     py2,
9     py3
10
11 [testenv]
12 deps =
13     -r{toxinidir}/requirements.txt
14     pytest
15     pytest-click
16     pytest-datafiles
17 commands = pytest
18
19 [testenv:coala]
20 basepython = python3
21 deps =
22     coala
23     coala-bears
24     nodeenv==1.1.2
25 commands =
26     nodeenv -p
27     npm install --global remark-cli remark-lint write-good
28     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
29     coala --non-interactive
30
31 [testenv:docs]
32 deps = -rrequirements.txt
33 commands =
34     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
35     echo "Generated docs available in {toxinidir}/docs/_build/html"
36 whitelist_externals = echo
37
38 [testenv:docs-linkcheck]
39 deps = -rrequirements.txt
40 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
41
42 [testenv:license]
43 deps =
44     lftools
45 commands =
46     lftools license check-dir lftools
47     lftools license check-dir -r '.+' shell