mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 13:52:48 +08:00
Use travis-ci python config
This commit is contained in:
+20
-22
@@ -1,34 +1,32 @@
|
||||
# vim ft=yaml
|
||||
# travis-ci.org definition for skimage build
|
||||
#
|
||||
# We pretend to be erlang because we can't use the python support in
|
||||
# travis-ci; it uses virtualenvs, they do not have numpy, scipy, matplotlib,
|
||||
# and it is impractical to build them
|
||||
|
||||
language: erlang
|
||||
env:
|
||||
- PYTHON=python PYSUF='' PYVER=2.7
|
||||
- PYTHON=python3 PYSUF='3' PYVER=3.2
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.2"
|
||||
virtualenv:
|
||||
system_site_packages: true
|
||||
before_install:
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
install:
|
||||
- sudo apt-get update # needed for python3-numpy
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PYTHON=python; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then export PYTHON=python3; fi
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install $PYTHON-dev
|
||||
- sudo apt-get install $PYTHON-numpy
|
||||
- sudo apt-get install $PYTHON-scipy
|
||||
- sudo apt-get install $PYTHON-setuptools
|
||||
- sudo apt-get install $PYTHON-nose
|
||||
- if [[ $PYVER == '2.7' ]]; then sudo apt-get install $PYTHON-qt4; fi
|
||||
- if [[ $PYVER == '3.2' ]]; then sudo apt-get install $PYTHON-pyqt4; fi
|
||||
- sudo apt-get install $PYTHON-pip
|
||||
- sudo apt-get install libfreeimage3
|
||||
- sudo easy_install$PYSUF pip
|
||||
- if [[ $PYVER == '2.7' ]]; then sudo apt-get install $PYTHON-matplotlib; fi
|
||||
- if [[ $PYVER == '3.2' ]]; then sudo pip-$PYVER install git+git://github.com/matplotlib/matplotlib.git@v1.2.x; fi
|
||||
- sudo pip-$PYVER install cython
|
||||
- sudo pip-$PYVER install flake8
|
||||
- sudo pip-$PYVER install six
|
||||
- $PYTHON setup.py build_ext --inplace
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then sudo apt-get install $PYTHON-qt4; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then sudo apt-get install $PYTHON-pyqt4; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then sudo apt-get install $PYTHON-matplotlib; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.2' ]]; then sudo pip install git+git://github.com/matplotlib/matplotlib.git@v1.2.x; fi
|
||||
- sudo pip install cython
|
||||
- sudo pip install flake8
|
||||
- sudo pip install six
|
||||
install:
|
||||
- python setup.py build_ext --inplace
|
||||
script:
|
||||
# Check if setup.py's match bento.info
|
||||
- $PYTHON check_bento_build.py
|
||||
@@ -37,7 +35,7 @@ script:
|
||||
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
|
||||
- "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"
|
||||
# Run all tests
|
||||
- nosetests-$PYVER --exe -v --with-doctest --ignore-files='^\.' --ignore-files='^setup\.py$$' --ignore-files='^_test' skimage
|
||||
- nosetests --exe -v --with-doctest --ignore-files='^\.' --ignore-files='^setup\.py$$' --ignore-files='^_test' skimage
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user