petale/tox.ini

36 lines
775 B
INI

[tox]
envlist = py27-coverage-dj111,py3-coverage-{dj111,dj22}
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/petale/
[testenv]
usedevelop=True
setenv =
DJANGO_SETTINGS_MODULE=petale.settings
PETALE_SETTINGS_FILE=tests/settings.py
coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov-report html --cov=petale/ --cov-config .coveragerc
deps =
dj111: django>=1.11,<2
dj22: django>=2.2,<2.3
pytest-cov
pytest-django
pytest
pylint<1.8
pylint-django<0.8.1
mock
django-webtest<1.9.3
psycopg2
pyquery
commands =
python setup.py compile_translations
py.test {env:COVERAGE:} {posargs:tests/}
[testenv:pylint]
deps =
pylint<1.8
pylint-django<0.8.1
commands =
/bin/bash -c "./pylint.sh petale/"
[pytest]
junit_family=xunit2