mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-27 17:17:07 +08:00
41 lines
1.7 KiB
YAML
41 lines
1.7 KiB
YAML
# 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
|
|
install:
|
|
- sudo apt-get update # needed for python3-numpy
|
|
- 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
|
|
- sudo easy_install$PYSUF pip
|
|
- sudo pip-$PYVER install cython
|
|
- sudo apt-get install libfreeimage3
|
|
- 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 flake8 --use-mirrors
|
|
- $PYTHON setup.py build
|
|
- sudo $PYTHON setup.py install
|
|
script:
|
|
# Check if setup.py's match bento.info
|
|
- $PYTHON check_bento_build.py
|
|
# Change into an innocuous directory and find tests from installation
|
|
- mkdir $HOME/.matplotlib
|
|
- "echo 'backend : Agg' > $HOME/.matplotlib/matplotlibrc"
|
|
- "echo 'backend.qt4 : PyQt4' >> $HOME/.matplotlib/matplotlibrc"
|
|
- mkdir for_test
|
|
- cd for_test
|
|
- nosetests-$PYVER --exe -v --cover-package=skimage skimage
|
|
# Change back to repository root directory and run all doc examples
|
|
- cd ..
|
|
- for f in doc/examples/*.py; do $PYTHON "$f"; if [ $? -ne 0 ]; then exit 1; fi done
|
|
- flake8 --exit-zero --exclude=test_*,six.py skimage doc/examples viewer_examples
|