mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 13:02:47 +01:00
travis config: report to coveralls.io
This commit is contained in:
parent
19c46b1273
commit
74e22065ce
1 changed files with 16 additions and 5 deletions
21
.travis.yml
21
.travis.yml
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue