Update example repo config files for ODL Neon SR1
[integration/packaging.git] / tox.ini
1 [tox]
2 minversion = 1.6.0
3 envlist = docs,coala,pkg_unittests
4 skipsdist = true
5
6 [testenv:coala]
7 basepython = python3
8 deps =
9     coala==0.11
10     coala-bears==0.11
11     pygments~=2.3.1
12     # Requests 2.16 breaks dependencies
13     requests<2.16
14     nodeenv==1.1.2
15 commands =
16     nodeenv -p
17     npm install --global dockerfile_lint remark-cli remark-lint write-good
18     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
19     coala --non-interactive
20
21 [testenv:docs]
22 deps = -rdocs/requirements.txt
23 commands =
24     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
25     echo "Generated docs available in {envtmpdir}/html"
26 whitelist_externals = echo
27
28 [testenv:docs-linkcheck]
29 deps = -rdocs/requirements.txt
30 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck
31
32 [testenv:pkg_unittests]
33 # TODO: Support Python 3
34 #basepython = python3
35 deps =
36     -r{toxinidir}/packages/requirements.txt
37 commands = python -m unittest packages.test_lib