blob: e6f1b124f6ce2d558956dd8456aefbcf6b921148 [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:
Pauli Virtanen7f8aefc2013-05-11 11:28:4216# tox -e py27
Nathaniel J. Smithe3e50282012-05-21 22:33:1917
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
Pauli Virtanen7f8aefc2013-05-11 11:28:4225# installed and that they can be run as 'python2.7', 'python3.3', etc.
Nathaniel J. Smithe3e50282012-05-21 22:33:1926
27[tox]
Alex Willmerf179ec92015-08-04 17:44:3928envlist =
Alexandr Shadchin5006fa02017-03-08 18:04:5629 py27,py34,py35,py36,
Alexandr Shadchin28f9b8b2017-03-05 20:34:2030 py27-not-relaxed-strides,py34-not-relaxed-strides
Nathaniel J. Smithe3e50282012-05-21 22:33:1931
32[testenv]
33deps=
34 nose
35changedir={envdir}
Pauli Virtanen7f8aefc2013-05-11 11:28:4236commands={envpython} {toxinidir}/tools/test-installed-numpy.py --mode=full {posargs:}
Nathaniel J. Smithe3e50282012-05-21 22:33:1937
Charles Harrisd1422d32014-05-06 15:37:3838[testenv:py27-not-relaxed-strides]
Pauli Virtanen7f8aefc2013-05-11 11:28:4239basepython=python2.7
Charles Harrisd1422d32014-05-06 15:37:3840env=NPY_RELAXED_STRIDES_CHECKING=0
Pauli Virtanen7f8aefc2013-05-11 11:28:4241
Alex Willmerf179ec92015-08-04 17:44:3942[testenv:py34-not-relaxed-strides]
43basepython=python3.4
44env=NPY_RELAXED_STRIDES_CHECKING=0
45
Nathaniel J. Smithe3e50282012-05-21 22:33:1946# Not run by default. Set up the way you want then use 'tox -e debug'
47# if you want it:
48[testenv:debug]
Pauli Virtanen7f8aefc2013-05-11 11:28:4249basepython=python-dbg
50commands=gdb --args {envpython} {toxinidir}/tools/test-installed-numpy.py --mode=full {posargs:}