Merge "Test against explicit major versions of Python"
[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     py34,
11     py35,
12     py36,
13     py37
14 skip_missing_interpreters = true
15
16 [testenv]
17 deps = -r{toxinidir}/requirements-test.txt
18 commands = pytest
19
20 [testenv:check-hooks]
21 deps = pre-commit==1.11.2
22 commands =
23     pre-commit install
24     pre-commit run --all-files
25
26 [testenv:coala]
27 basepython = python3
28 deps =
29     coala
30     coala-bears
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}