mirror of
https://github.com/certbot/certbot.git
synced 2026-01-21 19:01:07 +03:00
53 lines
1.7 KiB
INI
53 lines
1.7 KiB
INI
# Tox (http://tox.testrun.org/) is a tool for running tests in
|
|
# multiple virtualenvs. To use it, "pip install tox" and then run
|
|
# "tox" from this directory.
|
|
|
|
[tox]
|
|
# acme and letsencrypt are not yet on pypi, so when Tox invokes
|
|
# "install *.zip", it will not find deps
|
|
skipsdist = true
|
|
envlist = py26,py27,py33,py34,cover,lint
|
|
|
|
[testenv]
|
|
commands =
|
|
pip install -r requirements.txt -e acme -e .[testing] -e letsencrypt-apache -e letsencrypt-nginx
|
|
# -q does not suppress errors
|
|
python setup.py test -q
|
|
python setup.py test -q -s acme
|
|
python setup.py test -q -s letsencrypt_apache
|
|
python setup.py test -q -s letsencrypt_nginx
|
|
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}
|
|
PYTHONHASHSEED = 0
|
|
# https://testrun.org/tox/latest/example/basic.html#special-handling-of-pythonhas
|
|
|
|
[testenv:py33]
|
|
commands =
|
|
pip install -e acme[testing]
|
|
nosetests acme
|
|
|
|
[testenv:py34]
|
|
commands =
|
|
pip install -e acme[testing]
|
|
nosetests acme
|
|
|
|
[testenv:cover]
|
|
basepython = python2.7
|
|
commands =
|
|
pip install -r requirements.txt -e acme -e .[testing] -e letsencrypt-apache -e letsencrypt-nginx
|
|
./tox.cover.sh
|
|
|
|
[testenv:lint]
|
|
# recent versions of pylint do not support Python 2.6 (#97, #187)
|
|
basepython = python2.7
|
|
# separating into multiple invocations disables cross package
|
|
# duplicate code checking; if one of the commands fails, others will
|
|
# continue, but tox return code will reflect previous error
|
|
commands =
|
|
pip install -r requirements.txt -e acme -e .[dev] -e letsencrypt-apache -e letsencrypt-nginx
|
|
pylint --rcfile=.pylintrc letsencrypt
|
|
pylint --rcfile=.pylintrc acme/acme
|
|
pylint --rcfile=.pylintrc letsencrypt-apache/letsencrypt_apache
|
|
pylint --rcfile=.pylintrc letsencrypt-nginx/letsencrypt_nginx
|