diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..622630c --- /dev/null +++ b/.coveragerc @@ -0,0 +1,7 @@ +[run] +branch = True +source = MRS +include = MRS +omit = */setup.py +[report] +include = MRS diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..56170f0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +# 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: + # Enable python 2 and python 3 builds. Python3 available in Ubuntu 12.04. + - PYTHON=python PYSUF='' +install: + - 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 + - sudo apt-get install $PYTHON-matplotlib + #pypi installs: + - sudo easy_install$PYSUF nibabel + - sudo easy_install$PYSUF traits + - sudo easy_install$PYSUF networkx + - sudo easy_install$PYSUF nipype + - sudo easy_install$PYSUF nitime + # Temporary solution to travis issue #155 + # https://github.com/travis-ci/travis-cookbooks/issues/155 + - sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm + - sudo pip install coverage + - cd .. + - $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 + cp ../.coveragerc . ; + nosetests$PYSUF --with-doctest --with-coverage --cover-package=MRS`$PYTHON -c "import os; import MRS; print(os.path.dirname(MRS.__file__))"` ;