petale/tox.ini

59 lines
1.2 KiB
INI

[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/petale/
envlist =
py2-dj111-drf34
py3-dj111-drf34
py3-dj22-drf39
[tox:jenkins]
envlist =
pylint
py2-dj111-drf34
py3-dj111-drf34
py3-dj22-drf39
[testenv]
usedevelop=true
setenv =
DJANGO_SETTINGS_MODULE=petale.settings
PETALE_SETTINGS_FILE=tests/settings.py
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
COVERAGE={tty::--junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=petale/ --cov-config .coveragerc}
passenv=
BRANCH_NAME
# support for pg_virtualenv
PGPORT
PGHOST
PGUSER
PGPASSWORD
deps =
dj111: django>=1.11,<2
dj22: django>=2.2,<2.3
pytest-cov
pytest-django
pytest
mock
django-webtest<1.9.3
psycopg2
pyquery
commands =
python setup.py compile_translations
py.test {env:COVERAGE:} {env:JUNIT:} {tty:--sw:} {posargs:tests/}
[testenv:pylint]
usedevelop = true
basepython = python2.7
deps =
Django<2.3
pylint<1.8
pylint-django<0.8.1
commands =
/bin/bash -c "./pylint.sh petale/"
[pytest]
junit_family=xunit2
filterwarnings =
error
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:django.*