Setup PBR for lftools
[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 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 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
47
48 [testenv:latest-upstream]
49 deps = -r{toxinidir}/requirements-test.txt
50 commands =
51     pip install -U python-jenkins requests shade
52     pytest
53
54 [testenv:license]
55 deps =
56     lftools
57 commands =
58     lftools license check-dir lftools
59     lftools license check-dir -r '.+' shell