From 90c710b77b6541dec51dcf606da3e0478a22b384 Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Wed, 21 Nov 2012 21:00:17 +0100 Subject: [PATCH] Enable Python 3 in Travis --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ac1f0ce8..8adb333b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,10 @@ python: - "2.7" - "2.6" - "2.5" -install: if [ "$(python --version 2>&1)" == "Python 2.5.6" ]; then pip install -r python25-requirements.txt --use-mirrors; fi; if [ "$(python --version 2>&1)" == "Python 2.6.8" ]; then pip install -r python26-requirements.txt --use-mirrors; fi -script: python ./setup.py test + - "3.2" +install: + - if [ $TRAVIS_PYTHON_VERSION == '2.5' ]; then pip install -r python25-requirements.txt --use-mirrors; fi + - if [ $TRAVIS_PYTHON_VERSION == '2.6' ]; then pip install -r python26-requirements.txt --use-mirrors; fi +script: + - if [ $TRAVIS_PYTHON_VERSION == '3.2' ]; then 2to3 . --write --no-diffs --nobackups; fi + - python ./setup.py test