beets/.travis.yml
Adrian Sampson 71e1f00d03 use travis_retry with apt-get commands
Avoid spurious failures on connectivity issues.
2014-03-06 11:06:56 -08:00

26 lines
757 B
YAML

language: python
python:
- "2.7"
- "2.6"
- "pypy"
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 || true"
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install -qq bash-completion
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 || true"
after_success:
- "[[ $TRAVIS_PYTHON_VERSION == '2.7' ]] && coveralls || true"