Fix broken help from openstack and sign cmds
[releng/lftools.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4     check-hooks,
5     coala,
6     docs,
7     docs-linkcheck,
8     license,
9     py2,
10     py3
11
12 [testenv]
13 deps =
14     -r{toxinidir}/requirements.txt
15     -r{toxinidir}/requirements-test.txt
16     pytest
17     pytest-click
18     pytest-datafiles
19 commands = pytest
20
21 [testenv:check-hooks]
22 deps = pre-commit
23 commands =
24     pre-commit install
25     pre-commit run --all-files
26
27 [testenv:coala]
28 basepython = python3
29 deps =
30     coala
31     coala-bears
32     nodeenv==1.1.2
33 commands =
34     nodeenv -p
35     npm install --global remark-cli remark-lint write-good
36     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
37     coala --non-interactive
38
39 [testenv:docs]
40 deps = -rrequirements-docs.txt
41 extras = openstack
42 commands =
43     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
44
45 [testenv:docs-linkcheck]
46 deps = -rrequirements-docs.txt
47 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
48
49 [testenv:latest-upstream]
50 deps = -r{toxinidir}/requirements-test.txt
51 commands =
52     pip install -U python-jenkins requests shade
53     pytest
54
55 [testenv:license]
56 deps =
57     lftools
58 commands =
59     lftools license check-dir lftools
60     lftools license check-dir -r '.+' shell