Skip to content

Commit

Permalink
Added Travis + coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed May 6, 2015
1 parent 1438f59 commit 9fb0869
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[run]
source = MDAnalysis

exclude_lines =
pragma: no cover

[report]
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if __name__ == .__main__.:
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: python
python:
- "2.7"
# command to install dependencies
before_install:
- sudo apt-get update -qq
- sudo apt-get install -q -y gfortran libhdf5-serial-dev libnetcdf-dev liblapack-dev libatlas-dev
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION cython numpy scipy biopython matplotlib networkx netcdf4
- pip install package/
- pip install testsuite/
- pip install coveralls
# command to run tests
script:
- nosetests --with-coverage --cover-package MDAnalysis
after_success:
coveralls

0 comments on commit 9fb0869

Please sign in to comment.