travis config: report to coveralls.io

This commit is contained in:
Adrian Sampson 2014-01-28 12:22:35 -08:00
parent 19c46b1273
commit 74e22065ce

View file

@ -2,11 +2,22 @@ language: python
python:
- "2.7"
- "2.6"
install:
- travis_retry pip install .
- travis_retry pip install pylast flask
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi"
script: nosetests
branches:
only:
- master
install:
- travis_retry pip install .
- travis_retry pip install pylast flask
# unittest backport on Python < 2.7
- "[[ $TRAVIS_PYTHON_VERSION == '2.6' ]] && pip install unittest2"
script: nosetests --with-coverage --cover-package=beets
# coveralls.io reporting, using https://github.com/coagulant/coveralls-python
# Only report coverage for one version.
before_script:
- "[[ $TRAVIS_PYTHON_VERSION == '2.7' ]] && pip install coveralls"
after_success:
- "[[ $TRAVIS_PYTHON_VERSION == '2.7' ]] && coveralls"