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
|
2014-05-12 08:00:35 +00:00
|
|
|
- 3.4
|
2014-09-15 09:52:24 +00:00
|
|
|
- pypy3
|
2013-12-30 16:58:31 +00:00
|
|
|
|
2013-03-08 23:26:36 +00:00
|
|
|
env:
|
|
|
|
- DEPS=true
|
|
|
|
- DEPS=false
|
2013-12-30 16:58:31 +00:00
|
|
|
|
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
|
2014-09-15 09:56:15 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then travis_retry pip install unittest2; fi
|
2015-01-19 18:50:12 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then travis_retry pip install futures mock Monotime==1.0; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then travis_retry pip install singledispatch; fi
|
2015-01-19 04:54:41 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' && $DEPS == true ]]; then travis_retry pip install futures mock singledispatch; fi
|
2014-10-11 16:01:24 +00:00
|
|
|
# TODO(bdarnell): pycares tests are currently disabled on travis due to ipv6 issues.
|
2015-01-16 03:53:08 +00:00
|
|
|
#- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* && $DEPS == true ]]; then travis_retry pip install pycares; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* && $DEPS == true ]]; then travis_retry pip install pycurl; fi
|
2015-01-19 04:54:41 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' && $DEPS == true ]]; then travis_retry pip install mock singledispatch; fi
|
2014-07-03 02:01:22 +00:00
|
|
|
# Twisted runs on 2.x and 3.3+, but is flaky on pypy.
|
2015-01-14 13:59:21 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != '3.2' && $TRAVIS_PYTHON_VERSION != 'pypy'* && $DEPS == true ]]; then travis_retry travis_retry pip install Twisted; fi
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' && $DEPS == true ]]; then travis_retry travis_retry pip install sphinx==1.2.2 sphinx_rtd_theme; fi
|
2014-01-17 03:32:32 +00:00
|
|
|
# On travis the extension should always be built
|
2014-09-15 09:54:12 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then export TORNADO_EXTENSION=1; fi
|
2015-01-14 13:59:21 +00:00
|
|
|
- travis_retry python setup.py install
|
2014-09-15 09:56:15 +00:00
|
|
|
- travis_retry pip install coveralls
|
2013-12-30 16:58:31 +00:00
|
|
|
|
2012-02-27 18:15:48 +00:00
|
|
|
script:
|
2014-01-17 04:00:26 +00:00
|
|
|
# Get out of the source directory before running tests to avoid PYTHONPATH
|
|
|
|
# confusion. This is necessary to ensure that the speedups module can
|
|
|
|
# be found in the installation directory.
|
|
|
|
- cd maint
|
2014-05-14 01:07:38 +00:00
|
|
|
# Copy the coveragerc down so coveralls can find it.
|
|
|
|
- cp ../.coveragerc .
|
2014-09-15 10:12:14 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 'pypy'* ]]; then export TORNADO_EXTENSION=1; fi
|
2013-12-30 16:52:49 +00:00
|
|
|
- export TARGET="-m tornado.test.runtests"
|
2014-06-21 17:34:03 +00:00
|
|
|
# Travis workers are often overloaded and cause our tests to exceed
|
|
|
|
# the default timeout of 5s.
|
|
|
|
- export ASYNC_TEST_TIMEOUT=15
|
2013-12-30 16:52:49 +00:00
|
|
|
# We use "python -m coverage" instead of the "bin/coverage" script
|
|
|
|
# so we can pass additional arguments to python. However, this doesn't
|
|
|
|
# work on 2.6, so skip coverage on that version.
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then export TARGET="-m coverage run $TARGET"; fi
|
2013-12-30 16:37:58 +00:00
|
|
|
- python $TARGET
|
|
|
|
- python $TARGET --ioloop=tornado.platform.select.SelectIOLoop
|
|
|
|
- python -O $TARGET
|
|
|
|
- LANG=C python $TARGET
|
|
|
|
- LANG=en_US.utf-8 python $TARGET
|
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]]; then python -bb $TARGET; fi
|
2014-09-15 09:54:12 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != pypy* && $DEPS == true ]]; then python $TARGET --resolver=tornado.netutil.ThreadedResolver; fi
|
2014-01-11 04:27:33 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python $TARGET --httpclient=tornado.curl_httpclient.CurlAsyncHTTPClient; fi
|
2013-12-30 16:37:58 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python $TARGET --ioloop_time_monotonic; fi
|
2014-09-15 10:12:14 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION != '3.2' && $TRAVIS_PYTHON_VERSION != 'pypy'* && $DEPS == true ]]; then python $TARGET --ioloop=tornado.platform.twisted.TwistedIOLoop; fi
|
2013-12-30 16:37:58 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 2* && $DEPS == true ]]; then python $TARGET --resolver=tornado.platform.twisted.TwistedResolver; fi
|
2015-01-14 13:59:21 +00:00
|
|
|
#- if [[ $TRAVIS_PYTHON_VERSION != pypy* && $DEPS == true ]]; then python $TARGET --resolver=tornado.platform.caresresolver.CaresResolver; fi
|
2013-12-30 16:37:58 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then python $TARGET --ioloop_time_monotonic; fi
|
2014-05-12 08:00:35 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then python $TARGET --ioloop_time_monotonic; fi
|
2014-01-17 04:12:42 +00:00
|
|
|
- export TORNADO_EXTENSION=0
|
2014-05-26 03:03:13 +00:00
|
|
|
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' && $DEPS == true ]]; then cd ../docs && mkdir sphinx-out && sphinx-build -E -n -W -b html . sphinx-out; fi
|
2013-12-30 16:58:31 +00:00
|
|
|
|
2013-12-30 16:37:58 +00:00
|
|
|
after_success:
|
2014-05-12 08:00:35 +00:00
|
|
|
coveralls
|
2014-07-25 02:28:45 +00:00
|
|
|
|
|
|
|
# This reportedly works around an issue downloading packages from pypi on
|
|
|
|
# travis. Consider removing this after the underlying issue is fixed.
|
|
|
|
# https://github.com/travis-ci/travis-ci/issues/2389
|
|
|
|
sudo: false
|
2014-09-15 09:57:15 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|