33# versions.
44
55[tox]
6- # Our various test environments. The py*-all tasks will run
7- # common tests and all contrib tests with the latest library versions.
6+ # Our various test environments. The py*-all tasks will run the core
7+ # library tests and all contrib tests with the latest library versions.
88# The others will test specific versions of libraries.
99envlist =
10- {py34}- wait-for-services
11- {py27,py34}-all
10+ wait
11+ flake8
1212 {py27,py34}-elasticsearch{23}
1313 {py27,py34}-falcon{10}
14- {py27,py34}-flask{010,011}
15- {py27,py34}-flask{010,011}-flaskcache{013}
16- {py27}-flask{010,011}-flaskcache{012}
17- {py27,py34}-mysql-connector {21}
14+ {py27,py34}-flask{010,011}-blinker
15+ {py27,py34}-flask{010,011}-flaskcache{013}-memcached-redis-blinker
16+ {py27}-flask{010,011}-flaskcache{012}-memcached-redis-blinker
17+ {py27,py34}-mysqlconnector {21}
1818 {py27,py34}-pylibmc{140,150}
19- {py27,py34}-pymongo{30,31,32,33}
20- {py27,py34}-sqlalchemy{10,11}
21- flake8
19+ {py27,py34}-pymongo{30,31,32,33}-mongoengine
20+ {py27,py34}-sqlalchemy{10,11}-psycopg2
21+ {py27,py34}-all
2222
2323[testenv]
2424basepython =
2525 py27: python2.7
2626 py34: python3.4
2727
2828deps =
29- # test dependencies
29+ # test dependencies installed in all envs
3030 mock
3131 nose
3232# integrations
33- blinker
34- cassandra-driver
35- django
33+ all: blinker
34+ all: cassandra-driver
35+ all: django
3636 all: elasticsearch
37- elasticsearch23: elasticsearch>=2.3,<2.4
3837 all: falcon
39- falcon10: falcon>=1.0,<1.1
4038 all: flask
39+ all: flask_cache
40+ all: mongoengine
41+ all: mysql-connector
42+ all: psycopg2
43+ all: pylibmc
44+ all: pymongo
45+ all: python-memcached
46+ all: redis
47+ all: sqlalchemy
48+ blinker: blinker
49+ elasticsearch23: elasticsearch>=2.3,<2.4
50+ falcon10: falcon>=1.0,<1.1
4151 flask010: flask>=0.10,<0.11
4252 flask011: flask>=0.11
43- all: flask_cache
4453 flaskcache012: flask_cache>=0.12,<0.13
4554 flaskcache013: flask_cache>=0.13,<0.14
46- mongoengine
47- psycopg2
48- all: mysql-connector
49- mysql-connector21: mysql-connector>=2.1,<2.2
50- all: pylibmc
55+ memcached: python-memcached
56+ mongoengine: mongoengine
57+ mysqlconnector21: mysql-connector>=2.1,<2.2
5158 pylibmc140: pylibmc>=1.4.0,<1.5.0
5259 pylibmc150: pylibmc>=1.5.0
53- all: pymongo
5460 pymongo30: pymongo>=3.0,<3.1
5561 pymongo31: pymongo>=3.1,<3.2
5662 pymongo32: pymongo>=3.2,<3.3
5763 pymongo33: pymongo>=3.3
58- redis
59- python-memcached
60- all: sqlalchemy
64+ psycopg2: psycopg2
65+ redis: redis
6166 sqlalchemy10: sqlalchemy>=1.0,<1.1
6267 sqlalchemy11: sqlalchemy ==1.1.0b3
6368
@@ -66,21 +71,31 @@ passenv=TEST_*
6671
6772commands =
6873# wait for services script
69- {py34}-wait-services : python tests/wait-for-services.py
74+ {py34}-wait: python tests/wait-for-services.py
7075# run all tests for the release jobs
7176 {py27,py34}-all: nosetests {posargs}
7277# run subsets of the tests for particular library versions
7378 {py27,py34}-elasticsearch{23}: nosetests {posargs} tests/contrib/elasticsearch
79+ {py27,py34}-flaskcache{013}: nosetests {posargs} tests/contrib/flask_cache
7480# flask_cache 0.12 is not python 3 compatible
75- {py27,py34}-flask{010,011}-flaskcache{013}: nosetests {posargs} tests/contrib/flask_cache
76- {py27}-flask{010,011}-flaskcache{012}: nosetests {posargs} tests/contrib/flask_cache
81+ {py27}-flaskcache{012}: nosetests {posargs} tests/contrib/flask_cache
7782 {py27,py34}-flask{010,011}: nosetests {posargs} tests/contrib/flask
7883 {py27,py34}-falcon{10}: nosetests {posargs} tests/contrib/falcon
79- {py27,py34}-mysql-connector21} : nosetests {posargs} tests/contrib/mysql
84+ {py27,py34}-mysqlconnector21 : nosetests {posargs} tests/contrib/mysql
8085 {py27,py34}-pylibmc{140,150}: nosetests {posargs} tests/contrib/pylibmc
81- {py27,py34}-pymongo{30,31,32,33}: nosetests {posargs} tests/contrib/pymongo/ tests/contrib/mongoengine
82- {py27,py34}-sqlalchemy{10,11}: nosetests {posargs} tests/contrib/sqlalchemy tests/contrib/psycopg tests/contrib/sqlite3
86+ {py27,py34}-pymongo{30,31,32,33}: nosetests {posargs} tests/contrib/pymongo/
87+ {py27,py34}-mongoengine: nosetests {posargs} tests/contrib/mongoengine
88+ {py27,py34}-psycopg2: nosetests {posargs} tests/contrib/psycopg
89+ {py27,py34}-sqlalchemy{10,11}: nosetests {posargs} tests/contrib/sqlalchemy
8390
91+ [testenv:wait]
92+ commands =python tests/wait-for-services.py
93+ basepython =python
94+ deps =
95+ cassandra-driver
96+ psycopg2
97+ # this is somewhat flaky (can fail and still be up) so try the tests anyway
98+ ignore_outcome =true
8499
85100[testenv:flake8]
86101deps =flake8
0 commit comments