tox.ini
28 lines
| 1.1 KiB
| text/x-ini
|
IniLexer
Danilo J. S. Bellini
|
r22740 | ; Tox (http://tox.testrun.org/) is a virtualenv manager for running tests in | ||
; multiple environments. This configuration file gets the requirements from | ||||
; setup.py like a "pip install ipython[test]". To create the environments, it | ||||
; requires every interpreter available/installed. | ||||
; -- Commands -- | ||||
; pip install tox # Installs tox | ||||
; tox # Runs the tests (call from the directory with tox.ini) | ||||
Danilo J. S. Bellini
|
r22756 | ; tox -r # Ditto, but forcing the virtual environments to be rebuilt | ||
Danilo J. S. Bellini
|
r22740 | ; tox -e py35,pypy # Runs only in the selected environments | ||
; tox -- --all -j # Runs "iptest --all -j" in every environment | ||||
cel
|
r17665 | |||
Marc Abramowitz
|
r7631 | [tox] | ||
Danilo J. S. Bellini
|
r22740 | envlist = py{36,35,34,33,27,py} | ||
skip_missing_interpreters = True | ||||
toxworkdir = /tmp/tox_ipython | ||||
Marc Abramowitz
|
r7631 | |||
[testenv] | ||||
Danilo J. S. Bellini
|
r22740 | ; PyPy requires its Numpy fork instead of "pip install numpy" | ||
; Other IPython/testing dependencies should be in setup.py, not here | ||||
cel
|
r17665 | deps = | ||
Danilo J. S. Bellini
|
r22740 | pypy: https://bitbucket.org/pypy/numpy/get/master.zip | ||
py{36,35,34,33,27}: matplotlib | ||||
.[test] | ||||
cel
|
r17665 | |||
Danilo J. S. Bellini
|
r22756 | ; It's just to avoid loading the IPython package in the current directory | ||
Takafumi Arakaki
|
r8877 | changedir = {envtmpdir} | ||
Danilo J. S. Bellini
|
r22740 | commands = iptest {posargs} | ||