2016-03-20 18:43:48 +00:00
|
|
|
[tox]
|
2017-12-14 21:49:31 +00:00
|
|
|
envlist = py27, py34, py35, py36, flake8
|
2016-03-20 18:43:48 +00:00
|
|
|
|
|
|
|
[testenv]
|
2016-10-13 12:25:57 +00:00
|
|
|
commands =
|
2017-12-19 22:08:35 +00:00
|
|
|
{envbindir}/py.test --tb=short -n 4 \
|
2017-12-19 21:51:50 +00:00
|
|
|
--junitxml={toxworkdir}/junit-{envname}.xml \
|
|
|
|
--cov=dosagelib --cov-config=tox.ini --cov-branch \
|
|
|
|
--cov-report=term \
|
|
|
|
--cov-report=xml:{toxworkdir}/cov-{envname}.xml \
|
2017-12-19 22:08:35 +00:00
|
|
|
--cov-report=html:{toxworkdir}/cov-{envname} \
|
2017-12-19 21:51:50 +00:00
|
|
|
{posargs}
|
2016-10-13 13:05:44 +00:00
|
|
|
|
2017-11-28 00:27:40 +00:00
|
|
|
|
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
2016-03-20 18:43:48 +00:00
|
|
|
deps =
|
2016-03-20 18:53:43 +00:00
|
|
|
pytest-travis-fold
|
2017-12-19 21:51:50 +00:00
|
|
|
# Also install extra dependencies for tests.
|
|
|
|
extras =
|
|
|
|
css
|
|
|
|
dimensions
|
|
|
|
test
|
2016-10-13 13:05:44 +00:00
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
commands =
|
|
|
|
- {envbindir}/flake8
|
|
|
|
deps =
|
2016-04-16 14:59:04 +00:00
|
|
|
flake8
|
|
|
|
flake8-coding
|
2016-04-16 21:24:07 +00:00
|
|
|
flake8-future-import
|
2016-04-10 01:47:01 +00:00
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# we aim for 79, but this suppresses warnings for now...
|
|
|
|
max-line-length = 120
|
2016-04-16 21:24:07 +00:00
|
|
|
ignore = E121,E126,E241,FI12,FI14,FI15,FI50,FI51,FI53,FI54,FI55
|
|
|
|
require-code = True
|
2016-06-04 20:41:00 +00:00
|
|
|
min-version = 2.7
|
2018-05-22 22:54:40 +00:00
|
|
|
|
|
|
|
[pytest]
|
|
|
|
filterwarnings = default
|