Nathaniel J. Smith | e3e5028 | 2012-05-21 22:33:19 | [diff] [blame] | 1 | # '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. Smith | 64c3a8f | 2012-07-11 13:26:33 | [diff] [blame] | 28 | envlist = py24,py25,py26,py27,py31,py32,py27-separate,py32-separate |
Nathaniel J. Smith | e3e5028 | 2012-05-21 22:33:19 | [diff] [blame] | 29 | |
| 30 | [testenv] |
| 31 | deps= |
| 32 | nose |
| 33 | changedir={envdir} |
| 34 | commands=python {toxinidir}/tools/test-installed-numpy.py {posargs:} |
| 35 | |
Nathaniel J. Smith | 64c3a8f | 2012-07-11 13:26:33 | [diff] [blame] | 36 | [testenv:py27-separate] |
| 37 | basepython=python2.7 |
| 38 | env=NPY_SEPARATE_COMPILATION=1 |
| 39 | |
| 40 | [testenv:py32-separate] |
| 41 | basepython=python3.2 |
| 42 | env=NPY_SEPARATE_COMPILATION=1 |
| 43 | |
Nathaniel J. Smith | e3e5028 | 2012-05-21 22:33:19 | [diff] [blame] | 44 | # Not run by default. Set up the way you want then use 'tox -e debug' |
| 45 | # if you want it: |
| 46 | [testenv:debug] |
| 47 | basepython=PYTHON-WITH-DEBUG-INFO |
| 48 | commands=gdb --args {envpython} {toxinidir}/tools/test-installed-numpy.py {posargs:} |