|
| 1 | +# Tox (http://tox.testrun.org/) is a tool for running tests |
| 2 | +# in multiple virtualenvs. This configuration file will run the |
| 3 | +# test suite on all supported python versions. To use it, "pip install tox" |
| 4 | +# and then run "tox" from this directory. |
| 5 | + |
| 6 | +[tox] |
| 7 | +envlist = py25, py26, py27, py31, py32 |
| 8 | +sdistsrc = {env:DISTFILE} |
| 9 | + |
| 10 | +[testenv] |
| 11 | +deps = |
| 12 | + cython |
| 13 | + numpy >= 1.6.1 |
| 14 | + nose |
| 15 | + pytz |
| 16 | + |
| 17 | +# cd to anything but the default {toxinidir} which |
| 18 | +# contains the pandas subdirectory and confuses |
| 19 | +# nose away from the fresh install in site-packages |
| 20 | +changedir = {envdir} |
| 21 | + |
| 22 | +commands = |
| 23 | + # TODO: --exe because of GH #761 |
| 24 | + {envbindir}/nosetests --exe pandas.tests |
| 25 | + # cleanup the temp. build dir created by the tox build |
| 26 | + /bin/rm -rf {toxinidir}/build |
| 27 | + |
| 28 | + # quietly rollback the install. |
| 29 | + # Note this line will only be reached if the tests |
| 30 | + # previous lines succeed (in particular, the tests), |
| 31 | + # but an uninstall is really only required when |
| 32 | + # files are removed from source tree, in which case, |
| 33 | + # stale versions of files will will remain in the venv, |
| 34 | + # until the next time uninstall is run. |
| 35 | + # |
| 36 | + # tox should provide a preinstall-commands hook. |
| 37 | + pip uninstall pandas -qy |
| 38 | + |
| 39 | + |
| 40 | +[testenv:py25] |
| 41 | +deps = |
| 42 | + cython |
| 43 | + numpy >= 1.6.1 |
| 44 | + nose |
| 45 | + pytz |
| 46 | + simplejson |
| 47 | + |
| 48 | +[testenv:py26] |
| 49 | + |
| 50 | +[testenv:py27] |
| 51 | + |
| 52 | +[testenv:py31] |
| 53 | + |
| 54 | +[testenv:py32] |
0 commit comments