From 78915c5d959ed40476c28f33cf0fab8325e04957 Mon Sep 17 00:00:00 2001 From: jevans Date: Wed, 9 Oct 2013 21:00:34 -0400 Subject: [PATCH] Taking cue from tornado travis setup. Trying separate 2.6, 2.7, 3.3 setups. --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index eba8919..a7335bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,15 +10,17 @@ before_install: - sudo apt-get install -qq python3-numpy - wget http://openjpeg.googlecode.com/files/openjpeg-1.5.0-Linux-x86_64.tar.gz - sudo tar -xvf openjpeg-1.5.0-Linux-x86_64.tar.gz --strip-components=1 -C / - - if [ "${TRAVIS_PYTHON_VERSION::1}" == 3 ]; then export TEST_PKG=unittest2py3k; else export TEST_PKG=unittest2; fi # command to install dependencies install: - - pip install $TEST_PKG - - pip install -r travis-requirements.txt --use-mirrors + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors contextlib2 mock ordereddict unittest2; fi + - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --use-mirrors contextlib2 mock; fi # command to run tests -script: "unit2 discover" +script: + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover; fi + - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then python -m unittest discover; fi + - if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then python -m unittest discover; fi notifications: email: "john.g.evans.ne@gmail.com"