zoo/tox.ini

48 lines
1.1 KiB
INI
Raw Normal View History

2017-01-02 17:48:23 +01:00
# 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:}
2021-03-01 12:12:22 +01:00
envlist = py3-{dj111,dj22}-coverage
2017-01-02 17:48:23 +01:00
[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/
2017-01-02 17:48:23 +01:00
fast: FAST=--nomigrations
flakes: FLAKES=--flakes
2017-01-02 17:48:23 +01:00
usedevelop =
coverage: True
nocoverage: False
deps =
2021-03-01 12:12:22 +01:00
dj111: django<2
dj22: django<2.3
2021-03-01 13:43:00 +01:00
djangorestframework>=3.9.2,<3.10
2017-04-26 14:02:11 +02:00
pip>8
2017-02-28 23:36:38 +01:00
pytest-flakes
2021-06-17 08:50:04 +02:00
pg: psycopg2<2.9
2017-01-02 17:48:23 +01:00
coverage
pytest-cov
pytest-django
mock<4
pytest>=3.3.0
2017-01-02 17:48:23 +01:00
lxml
cssselect
pylint
pylint-django
django-webtest
WebTest
pyquery
httmock
pytz
faker
pytest-freezegun
2017-01-02 17:48:23 +01:00
commands =
py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}