-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
40 lines (36 loc) · 929 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
envlist =
py27,py36,py37
[testenv]
description = Run tests in {envname} environment
commands = {posargs:python -munittest discover}
deps =
[testenv:clean]
description = Clean all build and test artifacts
skipsdist = true
skip_install = true
deps =
whitelist_externals =
find
rm
commands =
find {toxinidir} -type f -name "*.pyc" -delete
find {toxinidir} -type d -name "__pycache__" -delete
rm -rf {toxworkdir} {toxinidir}/docs/build {toxinidir}/pysilverpop.egg-info
[testenv:pep8]
description = Run PEP8 pycodestyle (flake8) against the silverpop/ package directory
skipsdist = true
skip_install = true
basepython = python3.6
deps = pycodestyle
commands = pycodestyle silverpop
[testenv:docs]
description = Build Sphinx documentation
skipsdist = true
usedevelop = True
commands =
sphinx-apidoc -o docs silverpop
sphinx-build -b html docs docs/build
deps =
sphinx
sphinx_rtd_theme