Pin detox
[releng/lftools.git] / tox.ini
1 [tox]
2 minversion = 2.0
3 envlist =
4     check-hooks,
5     coala,
6     docs,
7     docs-linkcheck,
8     license,
9     py27,
10     py35,
11     py36,
12     py37
13 skip_missing_interpreters = true
14
15 [testenv]
16 deps = -r{toxinidir}/requirements-test.txt
17 commands = pytest
18
19 [testenv:check-hooks]
20 deps = pre-commit==1.11.2
21 commands =
22     pre-commit install
23     pre-commit run --all-files
24
25 [testenv:coala]
26 basepython = python3
27 deps =
28     coala
29     coala-bears
30     detox~=0.18
31     nodeenv==1.1.2
32 commands =
33     nodeenv -p
34     npm install --global remark-cli remark-lint write-good
35     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
36     coala --non-interactive
37
38 [testenv:docs]
39 deps = -rrequirements-docs.txt
40 extras = openstack
41 commands =
42     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
43
44 [testenv:docs-linkcheck]
45 deps = -rrequirements-docs.txt
46 extras = openstack
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
61
62 [testenv:reno]
63 deps = reno
64 commands = reno {posargs:--help}