
To solve the problem of "db type could not be determined" on py34 we have to run first the py34 env to, then, run py27. This patch puts py34 first on the tox.ini list of envs to avoid this problem to happen. py33/py26 is not supported from Mitaka, as per Infra, therefore removing the support for the same. Closes-Bug: #1526170 Closes-bug: #1489059 Change-Id: Ia4a7d21179efc17d4d9af2bbc0c060e5b6512b79
76 lines
2.1 KiB
INI
76 lines
2.1 KiB
INI
[tox]
|
|
envlist = py34,py27,pypy,pep8
|
|
|
|
[testenv]
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
|
|
commands = python setup.py testr
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
pbr
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 requests_mock
|
|
deps =
|
|
flake8
|
|
{[testenv]deps}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:coverage]
|
|
commands =
|
|
coverage erase
|
|
coverage run --source requests_mock -m testtools.run discover
|
|
coverage html
|
|
deps =
|
|
coverage
|
|
{[testenv]deps}
|
|
|
|
[testenv:requests123]
|
|
commands =
|
|
{envbindir}/pip install "requests==1.2.3"
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:doctest]
|
|
# note this only works under python 3 because of unicode literals
|
|
commands =
|
|
python -m doctest README.rst
|
|
|
|
[testenv:sphinx-doctest]
|
|
# note this only works under python 3 because of unicode literals
|
|
commands =
|
|
mkdir build/sphinx/doctest
|
|
sphinx-build -b doctest docs build/sphinx/doctest
|
|
deps =
|
|
pbr
|
|
{[testenv]deps}
|
|
|
|
[testenv:keystoneclient-tip]
|
|
deps =
|
|
six
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/python-keystoneclient#egg=python-keystoneclient
|
|
-egit+https://github.com/kennethreitz/requests.git#egg=requests
|
|
changedir = {envdir}/src/python-keystoneclient
|
|
commands =
|
|
{envbindir}/pip install -r requirements.txt -r test-requirements.txt
|
|
{envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:novaclient-tip]
|
|
deps =
|
|
six
|
|
-r{toxinidir}/test-requirements.txt
|
|
-egit+https://git.openstack.org/openstack/python-novaclient#egg=python-novaclient
|
|
-egit+https://github.com/kennethreitz/requests.git#egg=requests
|
|
changedir = {envdir}/src/python-novaclient
|
|
commands =
|
|
{envbindir}/pip install -r requirements.txt -r test-requirements.txt
|
|
{envbindir}/pip install pbr -t {envsitepackagesdir} # work around pbr being build installed in {toxinidir}
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|