Support distributed cloud with or without SSL
[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:flake8]
28 commands =
29     flake8 o2ims
30     flake8 o2dms
31     flake8 o2common
32
33 [testenv:code]
34 commands =
35     pytest tests/unit
36
37 [testenv:nosetests]
38 commands =
39     pytest tests/unit
40
41
42 [testenv:docs]
43 basepython = python3
44 deps =
45     sphinx
46     sphinx-rtd-theme
47     sphinxcontrib-httpdomain
48     recommonmark
49     lfdocs-conf
50
51 commands =
52     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
53
54     echo "Generated docs available in {toxinidir}/docs/_build/html"
55
56 whitelist_externals = echo
57
58 [testenv:docs-linkcheck]
59 basepython = python3
60 deps = sphinx
61        sphinx-rtd-theme
62        sphinxcontrib-httpdomain
63        recommonmark
64        lfdocs-conf
65 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck