zoo/tox.ini

48 lines
1.1 KiB
INI

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/{env:BRANCH_NAME:}
envlist = py3-{dj111,dj22}-coverage
[testenv]
# django.contrib.auth is not tested it does not work with our templates
whitelist_externals =
/bin/mv
setenv =
DJANGO_SETTINGS_MODULE=zoo.settings
SETUPTOOLS_USE_DISTUTILS=stdlib
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/
fast: FAST=--nomigrations
flakes: FLAKES=--flakes
usedevelop =
coverage: True
nocoverage: False
deps =
dj111: django<2
dj22: django<2.3
djangorestframework>=3.9.2,<3.10
pip>8
pytest-flakes
pg: psycopg2<2.9
coverage
pytest-cov
pytest-django
mock<4
pytest>=3.3.0
lxml
cssselect
pylint
pylint-django
django-webtest
WebTest
pyquery
httmock
pytz
faker
pytest-freezegun
commands =
py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}