Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable coverage testing #48

Merged
merged 5 commits into from Apr 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions .travis.yml
Expand Up @@ -5,15 +5,19 @@ python:
- 3.3

env:
- NUMPY_VERSION=1.8 ASTROPY_VERSION=0.3.1 SETUP_CMD='test'
- NUMPY_VERSION=1.8 ASTROPY_VERSION=0.3.1

before_install:
- source .setup_conda.sh $TRAVIS_PYTHON_VERSION
- export PATH=/home/travis/anaconda/bin:/home/travis/miniconda3/bin:$PATH

install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION astropy=$ASTROPY_VERSION pytest
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION astropy=$ASTROPY_VERSION pytest pip
- pip install pytest-cov coveralls

script:
- if [[ $SETUP_CMD == test ]]; then cd spectral_cube/tests/data ; make ; cd ../../../ ; fi
- if [[ $SETUP_CMD == test ]]; then py.test spectral_cube ; fi
- cd spectral_cube/tests/data ; make ; cd ../../../
- py.test --cov spectral_cube

after_success:
- coveralls
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -13,4 +13,12 @@ This package is developed by:
* Adam Ginsburg ([@keflavich](http://github.com/keflavich))
* Adam Leroy ([@akleroy](http://github.com/akleroy))
* Thomas Robitaille ([@astrofrog](http://github.com/astrofrog))
* Erik Rosolowsky ([@low-sky](http://github.com/low-sky))
* Erik Rosolowsky ([@low-sky](http://github.com/low-sky))

Build and coverage status
=========================

[![Build Status](https://travis-ci.org/radio-tools/spectral-cube.png?branch=master)](https://travis-ci.org/radio-tools/spectral-cube)

[![Coverage Status](https://coveralls.io/repos/radio-tools/spectral-cube/badge.png?branch=master)](https://coveralls.io/r/radio-tools/spectral-cube?branch=master)