From 72623c672d91fc131ae65effa38ca83f3e34ac37 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 5 Sep 2012 07:57:08 -0700 Subject: [PATCH] TST: Add Travis configuration based on nipy's. --- .travis.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f2708daa --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +# vim ft=yaml +# travis-ci.org definition for skimage build +# +# We pretend to be erlang because we need 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='' + # - PYTHON=python3 PYSUF=3 : python3-numpy not currently available +install: + # - sudo apt-get build-dep $PYTHON-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 apt-get install cython + - sudo apt-get install libfreeimage3 + - $PYTHON setup.py build + - sudo $PYTHON setup.py install +script: + # Change into an innocuous directory and find tests from installation + - mkdir for_test + - cd for_test + - nosetests `$PYTHON -c "import os; import skimage; print(os.path.dirname(skimage.__file__))"`