]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Disable coverage collection on python 2.6.
authorBen Darnell <ben@bendarnell.com>
Mon, 30 Dec 2013 16:52:49 +0000 (11:52 -0500)
committerBen Darnell <ben@bendarnell.com>
Mon, 30 Dec 2013 16:52:49 +0000 (11:52 -0500)
.travis.yml

index 6ae76dab409ddda389b816f9f9be9eda35d1baec..ee8f9c05092e4265145c28eaf89ba4cae3331a83 100644 (file)
@@ -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