You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.7 KiB

minversion = 2.2
envlist = linters, docs, py34, py35, py36, py27, cover
skip_missing_interpreters = true
# custom vars (no meaning to tox)
install_test_deps = pip install -q -r test-requirements.txt
setenv =
SUBUNIT_FORMATTER=tee testr_subunit_log
usedevelop = True
install_command = pip install {opts} {packages}
# cleanup is needed mostly for dev environmnts and assures that if dev
# is switching branch, no lefovers will impact execution.
# No git commands here because test should run even from a source archive.
commands =
- find . -type f -name "*.pyc" -delete
- find . -type d -name "__pycache__" -delete
# test that we can call jjb using both variants with same results
bash {toxinidir}/tools/
stestr run --slowest {posargs}
whitelist_externals =
# tests what happens with unreleased version of dependencies, like python-jenkins
install_command = pip install -U {opts} {packages}
commands =
bash -c "if [ -d {toxinidir}/../python-jenkins ]; then \
pip install -q -U -e 'git+file://{toxinidir}/../python-jenkins#egg=python-jenkins' ; else \
pip install -q -U -e 'git+' ; fi "
stestr run --slowest {posargs}
setenv =
PYTHON=coverage run --source jenkins_jobs --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
basepython = python3
commands =
python -m pre_commit run --all
# points to linters, kept only for developer convenience
commands = {[testenv:linters]commands}
deps = pyflakes
commands = pyflakes jenkins_jobs tests
commands = jenkins-jobs {posargs:test -o .test/run-conf/default/out/ .test/run-conf/config/}
commands = jenkins-jobs test -o .test/old/out/ .test/old/config/
commands = jenkins-jobs test -o .test/new/out/ .test/new/config/
commands =
python build_sphinx {posargs}
# If you are behind a proxy, for this test to work you will need to set
# TOX_TESTENV_PASSENV="http_proxy https_proxy no_proxy ..." to pass
# through the proxy environment settings to be able to validate any urls.
commands = python build_sphinx -b linkcheck
commands = {posargs}