--- /dev/null
+[tox]
+envlist = py{27,33,34}-sqla_{cext,nocext}-db_{sqlite,postgresql,mysql}
+
+[base]
+basecommand=
+ python -m pytest test/aaa_profiling -k "not memusage" --force-write-profiles
+
+[testenv]
+deps=pytest
+ mock
+ py{27,33,34}-sqla_{cext,nocext}-db_{postgresql}: psycopg2
+ py{27}-sqla_{cext,nocext}-db_{mysql}: mysql-python
+ py{33,34}-sqla_{cext,nocext}-db_{mysql}: pymysql
+
+usedevelop=False
+sitepackages=True
+
+
+commands=
+ py{27}-sqla_{cext,nocext}-db_{mysql}: {[base]basecommand} --db mysql {posargs}
+ py{33,34}-sqla_{cext,nocext}-db_{mysql}: {[base]basecommand} --db pymysql {posargs}
+ db_{postgresql}: {[base]basecommand} --db postgresql {posargs}
+ db_{sqlite}: {[base]basecommand} --db sqlite {posargs}
+
+setenv=
+ sqla_nocext: DISABLE_SQLALCHEMY_CEXT=1
+
+
for pth in ['./lib']:
- sys.path.insert(
- 0, os.path.join(os.path.dirname(os.path.abspath(__file__)), pth))
+ sys.path.append(
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), pth))
# use bootstrapping so that test plugins are loaded
# without touching the main library before coverage starts