diff --git a/.travis.yml b/.travis.yml index 2972fd9d..0e038f4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,8 +63,12 @@ script: - "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc" # Run all tests - - nosetests --exe -v --with-doctest --with-cov --cov skimage --cov-config .coveragerc skimage - + - if [[ $PYVER == '3.x' ]]; then + - nosetests --exe -v --with-doctest --with-cov --cov skimage --cov-config .coveragerc skimage + - fi + - if [[ $PYVER == '2.x' ]]; then + - nosetests --exe -v --with-doctest skimage + - fi # Run all doc examples - export PYTHONPATH=$(pwd):$PYTHONPATH - for f in doc/examples/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done @@ -74,4 +78,7 @@ script: - flake8 --exit-zero --exclude=test_*,six.py skimage doc/examples viewer_examples after_success: - - coveralls + - if [[ $PYVER == '3.x' ]]; then + - coveralls + - fi +