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