Skip to content

Commit

Permalink
ENH: adding travis and coveralls setup
Browse files Browse the repository at this point in the history
It squeezed following commits:

ENH: install nibabel (and remove installation of not needed gamin)
BF(travis): easy_install is unversioned
travis -- no Python matrix, use system-wide modules, install scipy (numpy) and nibabel from pkgs
  • Loading branch information
yarikoptic committed May 24, 2013
1 parent 19560ae commit 1223e45
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# vim ft=yaml
# travis-ci.org and coveralls definition for NeuroSynth build
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq python-scipy python-nibabel
install:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install -q coveralls; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coverage run --rcfile=.travis_coveragerc setup.py test; else python setup.py test; fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi
5 changes: 5 additions & 0 deletions .travis_coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[run]
branch = True
omit =
/usr/*
/home/travis/virtualenv/*

0 comments on commit 1223e45

Please sign in to comment.