look for py.test3

This commit is contained in:
Luke Campagnola 2014-03-25 23:13:42 -04:00
parent 9f9bca47c1
commit 250eabdb34

View File

@ -43,12 +43,18 @@ install:
travis_retry sudo apt-get -qq -y install python-numpy && travis_retry sudo apt-get -qq -y install python-numpy &&
sudo pip install pytest && sudo pip install pytest &&
sudo pip install flake8; sudo pip install flake8;
export PYTEST=py.test
else else
travis_retry sudo apt-get -qq -y install python3-numpy && travis_retry sudo apt-get -qq -y install python3-numpy &&
curl http://python-distribute.org/distribute_setup.py | sudo python3 && curl http://python-distribute.org/distribute_setup.py | sudo python3 &&
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python3 && curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python3 &&
sudo pip3.2 install pytest && sudo pip3.2 install pytest &&
sudo pip3.2 install flake8; sudo pip3.2 install flake8;
which py.test;
which py.test3;
which py.test-3;
which py.test3.2;
which py.test-3.2;
fi; fi;
# Qt # Qt
@ -117,16 +123,15 @@ before_script:
- python --version - python --version
script: script:
- PGDIR=`pwd`
# Run unit tests # Run unit tests
- python setup.py test - PYTHONPATH=. ${PYTEST} pyqtgraph/
# check line endings # check line endings
- if [ "${TEST}" == "extra" ]; then - if [ "${TEST}" == "extra" ]; then
find ./ -name "*.py" | xargs file | grep CRLF; out=$?; ! find ./ -name "*.py" | xargs file | grep CRLF;
if [ ${out} == 0 ]; ! find ./ -name "*.rst" | xargs file | grep CRLF;
then false;
else true;
fi;
fi; fi;
# Check for style issues # Check for style issues
@ -136,8 +141,11 @@ script:
# Check install works # Check install works
- sudo python setup.py --quiet install - sudo python setup.py --quiet install
- cd ..; echo "import pyqtgraph.examples" | python
# Check double-install fails # Check double-install fails
- cd pyqtgraph && sudo python setup.py --quiet install; if [ $? == 0 ]; then false; else true; fi; - ! sudo python setup.py --quiet install
# Check we can import pg
- cd /; echo "import pyqtgraph.examples" | python