Skip to content

Commit

Permalink
Added coverage testing via coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 1, 2013
1 parent b08eb7a commit b7d9d04
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ matrix:
env: NUMPY_VERSION=1.5.1 SETUP_CMD='test'
- python: 3.2
env: NUMPY_VERSION=1.6.2 SETUP_CMD='test'
- python: 2.7
env: NUMPY_VERSION=1.7.1 SETUP_CMD='cov'

before_install:
- sudo apt-get update -qq
Expand All @@ -30,6 +32,13 @@ install:
- pip -q install --upgrade "numpy==$NUMPY_VERSION" --use-mirrors
- pip -q install h5py
- pip -q install astropy
- if [[ $SETUP_CMD == cov ]]; then pip install pytest -q --use-mirrors; fi
- if [[ $SETUP_CMD == cov ]]; then pip install pytest-cov -q --use-mirrors; fi
- if [[ $SETUP_CMD == cov ]]; then pip install coveralls -q --use-mirrors; fi

script:
- python setup.py $SETUP_CMD
- if [[ $SETUP_CMD == test ]]; then python setup.py test ; fi
- if [[ $SETUP_CMD == cov ]]; then py.test --cov astrodendro; fi

after_success:
- if [[ $SETUP_CMD == cov ]]; then coveralls; fi

0 comments on commit b7d9d04

Please sign in to comment.