2012-02-27 18:15:48 +00:00
|
|
|
# http://travis-ci.org/#!/facebook/tornado
|
2012-02-27 18:09:46 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2012-06-17 06:46:03 +00:00
|
|
|
- 2.6
|
2012-02-27 18:09:46 +00:00
|
|
|
- 2.7
|
2012-06-17 06:56:42 +00:00
|
|
|
- pypy
|
2012-02-27 18:09:46 +00:00
|
|
|
- 3.2
|
2013-03-04 05:00:59 +00:00
|
|
|
- 3.3
|
2013-03-08 23:26:36 +00:00
|
|
|
env:
|
|
|
|
- DEPS=true
|
|
|
|
- DEPS=false
|
2012-02-27 18:09:46 +00:00
|
|
|
install:
|
2013-03-04 05:00:59 +00:00
|
|
|
# always install unittest2 on py26 even if $DEPS is unset
|
2012-09-06 00:54:21 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors unittest2; fi
|
2013-03-08 23:26:36 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then pip install --use-mirrors futures mock pycares pycurl twisted http://pypi.python.org/packages/source/M/Monotime/Monotime-1.0.tar.gz; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' && $DEPS == true ]]; then pip install --use-mirrors futures mock; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' && $DEPS == true ]]; then pip install --use-mirrors pycares mock; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' && $DEPS == true ]]; then pip install --use-mirrors pycares; fi
|
2012-02-27 18:09:46 +00:00
|
|
|
- python setup.py install
|
2012-02-27 18:15:48 +00:00
|
|
|
script:
|
|
|
|
# Must cd somewhere else so python3 doesn't get confused and run
|
|
|
|
# the python2 code from the current directory instead of the installed
|
|
|
|
# 2to3 version.
|
|
|
|
- cd maint
|
2013-03-08 23:26:36 +00:00
|
|
|
- python -m tornado.test.runtests
|
|
|
|
- python -m tornado.test.runtests --ioloop=tornado.platform.select.SelectIOLoop
|
|
|
|
- python -O -m tornado.test.runtests
|
|
|
|
- LANG=C python -m tornado.test.runtests
|
|
|
|
- LANG=en_US.utf-8 python -m tornado.test.runtests
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then python -bb -m tornado.test.runtests; fi
|
2013-03-16 17:43:04 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != pypy && $DEPS == true ]]; then python -m tornado.test.runtests --resolver=tornado.netutil.ThreadedResolver; fi
|
2013-03-08 23:26:36 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python -m tornado.test.runtests --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python -m tornado.test.runtests --ioloop_time_monotonic; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python -m tornado.test.runtests --ioloop=tornado.platform.twisted.TwistedIOLoop; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python -m tornado.test.runtests --resolver=tornado.platform.twisted.TwistedResolver; fi
|
2013-03-09 02:29:13 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != pypy && $DEPS == true ]]; then python -m tornado.test.runtests --resolver=tornado.platform.caresresolver.CaresResolver; fi
|
2013-03-09 00:04:08 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then python -m tornado.test.runtests --ioloop_time_monotonic; fi
|