7acf012c2b
* tox.ini: By default tox passes --pre to pip install commands so that prerelease packages will be deemed automatically suitable, as a means of keeping backwards-compatible with earlier pip releases which did not interpret version strings looking for potential prerelease patterns. By overriding the install_command in tox 1.6 and later, this option can be removed from the pip command line so that prerelease versions of packages will only be installed if a version spec for a particular package is also a prerelease. Change-Id: I978b906b0ecd6c01c99e08f9d27271a1f31c7a14
33 lines
865 B
INI
33 lines
865 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8, pyflakes, py26, py27
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv]
|
|
setenv VIRTUAL_ENV={envdir}
|
|
SUBUNIT_FORMATTER=tee testr_subunit_log
|
|
OS_STDOUT_NOCAPTURE=False
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/tools/pip-requires
|
|
-r{toxinidir}/tools/test-requires
|
|
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
deps = pep8==1.3.3
|
|
commands = pep8 --repeat --show-source --ignore=E125 --exclude=.venv,.tox,dist,doc,build,*egg . {posargs}
|
|
|
|
[testenv:pyflakes]
|
|
deps = pyflakes
|
|
commands = pyflakes jenkins_jobs tests setup.py
|
|
|
|
[testenv:compare-xml-old]
|
|
commands = jenkins-jobs test -o .test/old/out/ .test/old/config/
|
|
|
|
[testenv:compare-xml-new]
|
|
commands = jenkins-jobs test -o .test/new/out/ .test/new/config/
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|