Skip to content
Browse files

NF: travis build file first pass

Configuration file for travis-ci.org build and test
  • Loading branch information...
1 parent f1f3fa0 commit c5733a344e5e97b5fb188f7ddf143d21cc0074a5 @matthew-brett matthew-brett committed
Showing with 26 additions and 0 deletions.
  1. +26 −0 .travis.yml
View
26 .travis.yml
@@ -0,0 +1,26 @@
+# vim ft=yaml
+# travis-ci.org definition for nipy 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-sympy
+ - sudo apt-get install $PYTHON-setuptools
+ - sudo easy_install$PYSUF nibabel # Latest pypi
+ - sudo apt-get install $PYTHON-nose
+ - $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
+ - ../tools/nipnost `$PYTHON -c "import os; import nipy; print(os.path.dirname(nipy.__file__))"`

0 comments on commit c5733a3

Please sign in to comment.
Something went wrong with that request. Please try again.