1 # content of: tox.ini , put in same dir as setup.py
19 # NOTE: relative paths were used due to '-w' flag for nosetests util
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
28 # use pip to report dependencies with versions
29 whitelist_externals = sh
30 commands = sh -c 'pip freeze > requirements.txt'
40 O2APP_CONFIG=configs/o2app.conf
41 ALARM_YAML=configs/alarm.yaml
55 sphinxcontrib-httpdomain
60 sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
62 echo "Generated docs available in {toxinidir}/docs/_build/html"
64 whitelist_externals = echo
66 [testenv:docs-linkcheck]
70 sphinxcontrib-httpdomain
73 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck