Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 73 lines (64 sloc) 2.418 kb
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
1 # Tox (http://codespeak.net/~hpk/tox/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the tornado
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
5 #
6 # See also tornado/test/run_pyversion_tests.py, which is faster but
7 # less thorough.
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
bdarnell authored
8 #
9 # On my macports-based setup, the environment variable
10 # ARCHFLAGS='-arch x86_64' must be set when building pycurl, and a
11 # symlink from mysql_config to mysql_config5 must exist when building
12 # MySQL-python.
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
13 [tox]
14 # "-full" variants include optional dependencies, to ensure
15 # that things work both in a bare install and with all the extras.
98f7797 Ben Darnell Make it possible to run the test suite with --httpclient=CurlAsyncHTTPCl...
bdarnell authored
16 envlist = py27-full, py27-curl, py25-full, py32, pypy, py25, py26, py26-full, py27
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
17 [testenv]
18 commands = python -m tornado.test.runtests {posargs:}
19
20 # python will import relative to the current working directory by default,
21 # so cd into the tox working directory to avoid picking up the working
22 # copy of the files (especially important for 2to3).
23 changedir = {toxworkdir}
24 # Note that PYTHONPATH must not be set when running tox (and setting it
25 # with the following doesn't seem to work, since tox/virtualenv appends to
26 # PYTHONPATH)
27 #environment = PYTHONPATH=
28
29 [testenv:py25]
970b43b Ben Darnell Add configs for testing on Vagrant-managed VMs.
bdarnell authored
30 basepython = python2.5
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
31 deps = simplejson
32
33 [testenv:py25-full]
34 basepython = python2.5
35 deps =
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
bdarnell authored
36 MySQL-python
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
37 pycurl
38 simplejson
c1f72d5 Ben Darnell Pin twisted versions in the 2.2 branch to 11.1.0 since that release does...
bdarnell authored
39 twisted==11.1.0
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
40
af940f4 Ben Darnell Major update to tornado.platform.twisted.
bdarnell authored
41 # py26-full deliberately runs an older version of twisted to ensure
42 # we're still compatible with the oldest version we support.
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
43 [testenv:py26-full]
44 basepython = python2.6
45 deps =
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
bdarnell authored
46 MySQL-python
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
47 pycurl
52c83a4 Ben Darnell Our tests don't work with the recently-released Twisted 11.1.0, so pin
bdarnell authored
48 twisted==11.0.0
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
49
50 [testenv:py27-full]
51 basepython = python2.7
52 deps =
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
bdarnell authored
53 MySQL-python
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
54 pycurl
c1f72d5 Ben Darnell Pin twisted versions in the 2.2 branch to 11.1.0 since that release does...
bdarnell authored
55 twisted==11.1.0
f376841 Ben Darnell Add a config file to run tornado tests under multiple python versions wi...
bdarnell authored
56
98f7797 Ben Darnell Make it possible to run the test suite with --httpclient=CurlAsyncHTTPCl...
bdarnell authored
57 [testenv:py27-curl]
58 # Same as py27-full, but runs the tests with curl_httpclient by default.
59 # Note that httpclient_test is always run with both client implementations;
60 # this flag controls which client all the other tests use.
61 basepython = python2.7
62 deps =
63 MySQL-python
64 pycurl
c1f72d5 Ben Darnell Pin twisted versions in the 2.2 branch to 11.1.0 since that release does...
bdarnell authored
65 twisted==11.0.0
98f7797 Ben Darnell Make it possible to run the test suite with --httpclient=CurlAsyncHTTPCl...
bdarnell authored
66 commands = python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient {posargs:}
67
225bf2a Ben Darnell Remove tox config for pypy with mysql.
bdarnell authored
68 # No pypy-full yet: pycurl doesn't build with pypy, and installing
69 # twisted under pypy takes a *very* long time. MySQL-python builds with
70 # pypy, but doesn't work.
677c987 Ben Darnell Test that tornado.database is at least importable on all supported pytho...
bdarnell authored
71
72 # No py32-full yet: none of our dependencies currently work on python3.
Something went wrong with that request. Please try again.