diff --git a/.gitignore b/.gitignore index 43c7c5ef6bda..a9c493de9cb7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -# Editor temporary/working/backup files # ######################################### +# Editor temporary/working/backup files # .#* [#]*# *~ @@ -27,6 +27,8 @@ doc/_build dist # Egg metadata *.egg-info +# tox testing tool +.tox # OS generated files # ###################### diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000000..aeaccf467010 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: python + +python: + - 2.6 + - 2.7 + +install: + - pip install --use-mirrors nose numpy PIL + - pip install . + +script: python tests.py diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000000..66fbb591f0b7 --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py26, py27 + +[testenv] +commands = {envpython} tests.py +deps = + nose + numpy