From: Ben Darnell Date: Mon, 30 Dec 2013 16:52:49 +0000 (-0500) Subject: Disable coverage collection on python 2.6. X-Git-Tag: v3.2.0b1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6cb29be6827a8bb6137f54a57732dcacaa169d;p=thirdparty%2Ftornado.git Disable coverage collection on python 2.6. --- diff --git a/.travis.yml b/.travis.yml index 6ae76dab4..ee8f9c050 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,11 @@ script: # the python2 code from the current directory instead of the installed # 2to3 version. - cd maint + - export TARGET="-m tornado.test.runtests" + # 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 - export TARGET="-m coverage run -m tornado.test.runtests" - python $TARGET - python $TARGET --ioloop=tornado.platform.select.SelectIOLoop