Show More
@@ -1,44 +1,28 b'' | |||||
1 |
|
|
1 | ; Tox (http://tox.testrun.org/) is a virtualenv manager for running tests in | |
2 |
|
|
2 | ; multiple environments. This configuration file gets the requirements from | |
3 | # test suite on all supported python versions. To use it, "pip install tox" |
|
3 | ; setup.py like a "pip install ipython[test]". To create the environments, it | |
4 | # and then run "tox" from this directory. |
|
4 | ; requires every interpreter available/installed. | |
5 |
|
5 | ; -- Commands -- | ||
6 | # Building the source distribution requires `invoke` and `lessc` to be on your PATH. |
|
6 | ; pip install tox # Installs tox | |
7 | # "pip install invoke" will install invoke. Less can be installed by |
|
7 | ; tox # Runs the tests (call from the directory with tox.ini) | |
8 | # node.js' (http://nodejs.org/) package manager npm: |
|
8 | ; tox -r # Runs rebuilding virtual environments | |
9 | # "npm install -g less". |
|
9 | ; tox -e py35,pypy # Runs only in the selected environments | |
10 |
|
10 | ; tox -- --all -j # Runs "iptest --all -j" in every environment | ||
11 | # Javascript tests need additional dependencies that can be installed |
|
|||
12 | # using node.js' package manager npm: |
|
|||
13 | # [*] casperjs: "npm install -g casperjs" |
|
|||
14 | # [*] slimerjs: "npm install -g slimerjs" |
|
|||
15 | # [*] phantomjs: "npm install -g phantomjs" |
|
|||
16 |
|
||||
17 | # Note: qt4 versions break some tests with tornado versions >=4.0. |
|
|||
18 |
|
11 | |||
19 | [tox] |
|
12 | [tox] | |
20 | envlist = py27, py33, py34 |
|
13 | envlist = py{36,35,34,33,27,py} | |
|
14 | skip_missing_interpreters = True | |||
|
15 | toxworkdir = /tmp/tox_ipython | |||
21 |
|
16 | |||
22 | [testenv] |
|
17 | [testenv] | |
|
18 | ; PyPy requires its Numpy fork instead of "pip install numpy" | |||
|
19 | ; Other IPython/testing dependencies should be in setup.py, not here | |||
23 | deps = |
|
20 | deps = | |
24 | pyzmq |
|
21 | pypy: https://bitbucket.org/pypy/numpy/get/master.zip | |
25 | nose |
|
22 | py{36,35,34,33,27}: matplotlib | |
26 | tornado<4.0 |
|
23 | .[test] | |
27 | jinja2 |
|
|||
28 | sphinx |
|
|||
29 | pygments |
|
|||
30 | jsonpointer |
|
|||
31 | jsonschema |
|
|||
32 | mistune |
|
|||
33 |
|
24 | |||
34 |
|
|
25 | ; It's just to avoid loading IPython module in the current directory | |
35 | # current directory to ".tox/py*/tmp" before running test. |
|
|||
36 | changedir = {envtmpdir} |
|
26 | changedir = {envtmpdir} | |
37 |
|
27 | |||
38 | commands = |
|
28 | commands = iptest {posargs} | |
39 | iptest --all |
|
|||
40 |
|
||||
41 | [testenv:py27] |
|
|||
42 | deps= |
|
|||
43 | mock |
|
|||
44 | {[testenv]deps} |
|
General Comments 0
You need to be logged in to leave comments.
Login now