Add navigation links to Sphinx config
[mudpy.git] / tox.ini
1 # Copyright (c) 2016-2018 mudpy authors. Permission to use, copy,
2 # modify, and distribute this software is granted under terms
3 # provided in the LICENSE file distributed with this software.
4
5 [tox]
6 minversion = 3.1
7 envlist = dist, docs, flake8, yamllint, selftest_config, py3
8 skipsdist = True
9 ignore_basepython_conflict = True
10
11 [testenv]
12 basepython = python3
13 usedevelop = True
14 install_command = pip install {opts} {packages}
15 setenv =
16     PYTHONWARNINGS=default::DeprecationWarning
17 deps = -r{toxinidir}/test-requirements.txt
18 commands = mudpy_selftest mudpy/tests/fixtures/test_daemon.yaml
19
20 [testenv:debug]
21 commands = mudpy mudpy/tests/fixtures/test_daemon.yaml
22
23 [testenv:dist]
24 whitelist_externals = rm
25 deps =
26     pbr
27     twine
28 commands =
29     rm -fr dist
30     python setup.py bdist_wheel sdist
31     twine check dist/*
32
33 [testenv:docs]
34 whitelist_externals = rm
35 deps = -r{toxinidir}/doc/requirements.txt
36 commands =
37     rm -fr doc/build
38     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
39
40 [testenv:flake8]
41 commands = flake8 {posargs}
42
43 [testenv:selftest_config]
44 commands = mudpy_selftest etc/mudpy.yaml
45
46 [testenv:yamllint]
47 commands = yamllint {posargs} .
48
49 [flake8]
50 show-source = True
51 exclude=.git,.tox,*lib/python*,*egg,build