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