Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[run]
branch = True
source = MRS
include = MRS
omit = */setup.py
[report]
include = MRS
37 changes: 37 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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__))"` ;