2016-01-11 12:58:42 +01:00
|
|
|
[tox]
|
2020-07-28 15:13:38 +02:00
|
|
|
envlist = py2-coverage-django111-pylint,py3-django111,py3-django22
|
2016-09-23 11:01:11 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/mandayejs/
|
2016-01-11 12:58:42 +01:00
|
|
|
|
2016-09-23 11:01:11 +02:00
|
|
|
[testenv]
|
|
|
|
usedevelop =
|
|
|
|
coverage: True
|
|
|
|
setenv =
|
2020-09-01 14:25:39 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2016-09-23 11:01:11 +02:00
|
|
|
DJANGO_SETTINGS_MODULE=mandayejs.settings
|
|
|
|
MANDAYEJS_SETTINGS_FILE=tests/settings.py
|
2019-09-30 16:20:09 +02:00
|
|
|
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov-report html --cov=mandayejs/ --cov-config .coveragerc
|
2016-09-23 11:01:11 +02:00
|
|
|
deps =
|
2018-02-19 14:52:38 +01:00
|
|
|
django111: django>=1.11,<2.0
|
2020-07-28 15:13:38 +02:00
|
|
|
django22: django>=2.2,<2.3
|
2016-09-23 11:01:11 +02:00
|
|
|
pytest-cov
|
|
|
|
pytest-django
|
2020-07-28 15:12:59 +02:00
|
|
|
pytest
|
|
|
|
pylint
|
|
|
|
pylint-django
|
2020-10-06 09:24:17 +02:00
|
|
|
mock<4
|
2020-07-28 16:22:31 +02:00
|
|
|
djangorestframework>=3.3,<3.8
|
2016-02-05 12:23:17 +01:00
|
|
|
commands =
|
2020-07-28 13:26:24 +02:00
|
|
|
py2: ./getlasso.sh
|
|
|
|
py3: ./getlasso3.sh
|
2016-09-23 11:01:11 +02:00
|
|
|
py.test {env:COVERAGE:} {posargs:tests/}
|
|
|
|
pylint: ./pylint.sh mandayejs/
|