Docs: F release docs update
[pti/o2.git] / tox.ini
1 # content of: tox.ini , put in same dir as setup.py
2 [tox]
3 envlist=
4     flake8,
5     code,
6     docs,
7     docs-linkcheck,
8
9 minversion = 2.0
10 skipsdist = True
11
12 [testenv]
13 basepython =
14     code: python3.8
15     flake8: python3.8
16 setenv =
17         VIRTUAL_ENV={envdir}
18
19 # NOTE: relative paths were used due to '-w' flag for nosetests util
20
21 usedevelop = True
22 install_command = pip install -U {opts} {packages}
23 deps = -r{toxinidir}/requirements.txt
24        -r{toxinidir}/requirements-test.txt
25 whitelist_externals = bash, flake8, pytest
26
27 [testenv:clm]
28 # use pip to report dependencies with versions
29 whitelist_externals = sh
30 commands = sh -c 'pip freeze > requirements.txt'
31
32 [testenv:flake8]
33 commands =
34     flake8 o2ims
35     flake8 o2dms
36     flake8 o2common
37
38 [testenv:code]
39 commands =
40     pytest tests/unit
41
42 [testenv:nosetests]
43 commands =
44     pytest tests/unit
45
46
47 [testenv:docs]
48 basepython = python3
49 deps =
50     sphinx
51     sphinx-rtd-theme
52     sphinxcontrib-httpdomain
53     recommonmark
54     lfdocs-conf
55
56 commands =
57     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
58
59     echo "Generated docs available in {toxinidir}/docs/_build/html"
60
61 whitelist_externals = echo
62
63 [testenv:docs-linkcheck]
64 basepython = python3
65 deps = sphinx
66        sphinx-rtd-theme
67        sphinxcontrib-httpdomain
68        recommonmark
69        lfdocs-conf
70 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck