43 lines
1.1 KiB
INI
43 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.
|
|
|
|
[testenv:coverage]
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=settings
|
|
PYTHONPATH=tests
|
|
usedevelop = true
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
pytest-django
|
|
pytest-cov
|
|
pytest-capturelog
|
|
commands =
|
|
py.test {posargs:--junit-xml=junit.xml --cov=src --cov-report xml --nomigrations tests}
|
|
|
|
[testenv:nocoverage]
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=settings
|
|
PYTHONPATH=tests
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
pytest-django
|
|
pytest-cov
|
|
pytest-capturelog
|
|
commands =
|
|
py.test {posargs:--nomigrations tests}
|
|
|
|
[testenv:package]
|
|
# eobuilder is not on pypi, too bad
|
|
deps = setuptools
|
|
pip<8
|
|
pyasn1
|
|
ndg-httpsclient
|
|
pyopenssl
|
|
commands =
|
|
pip install -U --find-links https://jenkins.entrouvert.org/packages/ eobuilder
|
|
sh -c "sudo -u eobuilder -E env HOME=/var/lib/eobuilder PATH=$PATH $VIRTUAL_ENV/bin/eobuilder-ctl -d wheezy,jessie {posargs:django-kerberos}"
|