blob: fd52674dcde6e38b17c7a926ed0ccce2bdb4dc72 [file] [log] [blame]
Nathaniel J. Smithe3e50282012-05-21 22:33:191# 'Tox' is a tool for automating sdist/build/test cycles against
2# multiple Python versions:
3# http://pypi.python.org/pypi/tox
4# http://tox.testrun.org/
5
6# Running the command 'tox' while in the root of the numpy source
7# directory will:
8# - Create a numpy source distribution (setup.py sdist)
9# - Then for every supported version of Python:
10# - Create a virtualenv in .tox/py$VERSION and install
11# dependencies. (These virtualenvs are cached across runs unless
12# you use --recreate.)
13# - Use pip to install the numpy sdist into the virtualenv
14# - Run the numpy tests
15# To run against a specific subset of Python versions, use:
16# tox -e py24,py27
17
18# Extra arguments will be passed to test-installed-numpy.py. To run
19# the full testsuite:
20# tox full
21# To run with extra verbosity:
22# tox -- -v
23
24# Tox assumes that you have appropriate Python interpreters already
25# installed and that they can be run as 'python2.4', 'python2.5', etc.
26
27[tox]
Nathaniel J. Smith64c3a8f2012-07-11 13:26:3328envlist = py24,py25,py26,py27,py31,py32,py27-separate,py32-separate
Nathaniel J. Smithe3e50282012-05-21 22:33:1929
30[testenv]
31deps=
32 nose
33changedir={envdir}
34commands=python {toxinidir}/tools/test-installed-numpy.py {posargs:}
35
Nathaniel J. Smith64c3a8f2012-07-11 13:26:3336[testenv:py27-separate]
37basepython=python2.7
38env=NPY_SEPARATE_COMPILATION=1
39
40[testenv:py32-separate]
41basepython=python3.2
42env=NPY_SEPARATE_COMPILATION=1
43
Nathaniel J. Smithe3e50282012-05-21 22:33:1944# Not run by default. Set up the way you want then use 'tox -e debug'
45# if you want it:
46[testenv:debug]
47basepython=PYTHON-WITH-DEBUG-INFO
48commands=gdb --args {envpython} {toxinidir}/tools/test-installed-numpy.py {posargs:}