Run tests with different SQLAlchemy versions

The test suite should be run for all possible combinations
of Python and SQLAlchemy versions we claim to support, which
are Python 2.6 and 2.7 and SQLAlchemy 0.7.x (old stable) and
0.8.x (mainline stable).

py26/py27 tox envs install the latest stable version of SQLAlchemy
(currently, 0.8.x branch), so two additional tox environments added
to run the test suite with SQLAlchemy 0.7.x (for both Python 2.6 and 2.7).

Change-Id: I50c7009d8b808ce3bbb1f0a27c50f5cb5116cdb3
This commit is contained in:
Roman Podolyaka 2013-07-24 12:20:12 +03:00
parent 427149eef2
commit ddea3a8bc8
1 changed files with 11 additions and 1 deletions

12
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = py26,py27,py33,pep8
envlist = py26,py27,py26sa07,py27sa07,py33,pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
@ -8,6 +8,16 @@ deps = -r{toxinidir}/requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:py26sa07]
basepython = python2.6
deps = sqlalchemy>=0.7,<=0.7.99
-r{toxinidir}/test-requirements.txt
[testenv:py27sa07]
basepython = python2.7
deps = sqlalchemy>=0.7,<=0.7.99
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8