3d21d4b3aeb8247eace65d7cd4eb61dc43022eac
[mudpy.git] / tox.ini
1 # Copyright (c) 2016-2018 Jeremy Stanley <fungi@yuggoth.org>. Permission
2 # to use, copy, modify, and distribute this software is granted under
3 # terms provided in the LICENSE file distributed with this software.
4
5 [tox]
6 minversion = 2.0
7 envlist = flake8, yamllint
8 skipsdist = True
9
10 [testenv]
11 basepython = python3
12 usedevelop = True
13 install_command = pip install {opts} {packages}
14 setenv =
15     VIRTUAL_ENV={envdir}
16     PYTHONWARNINGS=default::DeprecationWarning
17 deps = -r{toxinidir}/test-requirements.txt
18 commands = python setup.py test --slowest --testr-args='{posargs}'
19
20 [testenv:dist]
21 deps = pbr
22 commands = python setup.py bdist_wheel sdist
23
24 [testenv:docs]
25 whitelist_externals = rm
26 deps = -r{toxinidir}/doc/requirements.txt
27 commands =
28     rm -fr doc/build
29     sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
30
31 [testenv:flake8]
32 commands = flake8 {posargs}
33
34 [testenv:yamllint]
35 commands = yamllint {posargs} .
36
37 [testenv:venv]
38 commands = {posargs}
39
40 [flake8]
41 show-source = True
42 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build