Make OpenStack requirements optional
[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     -r{toxinidir}/requirements-openstack.txt
15     -r{toxinidir}/requirements-test.txt
16     pytest
17     pytest-click
18     pytest-datafiles
19 commands = pytest
20
21 [testenv:coala]
22 basepython = python3
23 deps =
24     coala
25     coala-bears
26     nodeenv==1.1.2
27 commands =
28     nodeenv -p
29     npm install --global remark-cli remark-lint write-good
30     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
31     coala --non-interactive
32
33 [testenv:docs]
34 deps = -rrequirements-docs.txt
35 commands =
36     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
37     echo "Generated docs available in {toxinidir}/docs/_build/html"
38 whitelist_externals = echo
39
40 [testenv:docs-linkcheck]
41 deps = -rrequirements-docs.txt
42 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
43
44 [testenv:latest-upstream]
45 deps = -r{toxinidir}/requirements-test.txt
46 commands =
47     pip install -U python-jenkins requests shade
48     pytest
49
50 [testenv:license]
51 deps =
52     lftools
53 commands =
54     lftools license check-dir lftools
55     lftools license check-dir -r '.+' shell