-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathtox.ini
38 lines (32 loc) · 1.11 KB
/
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
[tox]
envlist = py{27,35,py}-{smoke,unit,requirements,coverage,license}, style, docs
skipsdist = True
skip_missing_interpreters = True
sitepackages = False
[testenv]
sitepackages = False
recreate = True
commands =
{envpython} -m pip install -q .[tests]
{envpython} -m pip install -q .
py{27,35,py}-smoke: {envpython} -m pytest -m smoke --cov=pycraft {posargs}
py{27,35,py}-unit: {envpython} -m pytest -m unit --cov=pycraft {posargs}
py{27,35,py}-coverage: {envpython} -m pytest --cov=pycraft {posargs}
py{27,35,py}-requirements: {envpython} -m pytest {posargs}
py{27,35,py}-license: {envpython} -m pytest -m license {posargs}
deps =
py{27,35,py}-requirements: -r{toxinidir}/requirements.txt
[testenv:style]
sitepackages = False
recreate = True
commands =
{envpython} -m pip install -q .[tests]
{envpython} -m pip install -q .
py.test -q --flake8 pycraft/ {posargs}
[testenv:docs]
sitepackages = False
recreate = True
commands =
{envpython} -m pip install -q .[docs]
{envpython} -m pip install -q .
sphinx-build [] -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html {posargs}