-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
29 lines (27 loc) · 795 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
[tox]
envlist=py36,py35,py27,py34,py33,cov,pylint,docs
[testenv]
deps=
string-scanner
pytest
pytest-cov
pytest-xdist
pdbpp
pylint: pylint
console: ipython
setenv=
py{27,36,35,34,33}: COVERAGE_FILE={envdir}/.coverage
commands=
py{27,36,35,34,33}: python -m pytest --cov=strparse --cov-report=term-missing --no-cov-on-fail {posargs}
cov: /usr/bin/env bash -c '{envpython} -m coverage combine {toxworkdir}/py*/.coverage'
cov: coverage html --fail-under=95
cov: coverage report --show-missing --fail-under=95
pylint: python -m pylint strparse --rcfile {toxinidir}/src/pylintrc --disable=C,R
console: ipython --profile=default --config={toxinidir}/ipython_config.py
[testenv:docs]
basepython=python2.7
changedir=docs
deps=
sphinx
commands=
/usr/bin/env make html