mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
87 lines
2.7 KiB
YAML
87 lines
2.7 KiB
YAML
dist: trusty
|
|
sudo: required
|
|
language: python
|
|
|
|
env:
|
|
global:
|
|
# Undocumented feature of nose-show-skipped.
|
|
NOSE_SHOW_SKIPPED: 1
|
|
|
|
matrix:
|
|
include:
|
|
- python: 2.7.13
|
|
env: {TOX_ENV: py27-cov, COVERAGE: 1}
|
|
- python: 2.7.13
|
|
env: {TOX_ENV: py27-test}
|
|
# - python: 3.4
|
|
# env: {TOX_ENV: py34-test}
|
|
# - python: 3.4_with_system_site_packages
|
|
# env: {TOX_ENV: py34-test}
|
|
- python: 3.5
|
|
env: {TOX_ENV: py35-test}
|
|
- python: 3.6
|
|
env: {TOX_ENV: py36-test}
|
|
- python: 3.7
|
|
env: {TOX_ENV: py37-test}
|
|
dist: xenial
|
|
- python: 3.8
|
|
env: {TOX_ENV: py38-test}
|
|
dist: xenial
|
|
# - python: pypy
|
|
# - env: {TOX_ENV: pypy-test}
|
|
- python: 3.6
|
|
env: {TOX_ENV: py36-flake8}
|
|
- python: 2.7.13
|
|
env: {TOX_ENV: docs}
|
|
# Non-Python dependencies.
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- sourceline: "deb https://archive.ubuntu.com/ubuntu/ trusty multiverse"
|
|
- sourceline: "deb https://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
|
|
packages:
|
|
- bash-completion
|
|
- gir1.2-gst-plugins-base-1.0
|
|
- gir1.2-gstreamer-1.0
|
|
- gstreamer1.0-plugins-good
|
|
- gstreamer1.0-plugins-bad
|
|
- imagemagick
|
|
- python-gi
|
|
- python-gst-1.0
|
|
- python3-gi
|
|
- python3-gst-1.0
|
|
- unrar
|
|
|
|
# To install dependencies, tell tox to do everything but actually running the
|
|
# test.
|
|
install:
|
|
- travis_retry pip install tox sphinx
|
|
# upgrade requests to satisfy sphinx linkcheck (for building man pages)
|
|
- if [[ $TRAVIS_PYTHON_VERSION == *_site_packages ]]; then pip install -U requests; fi
|
|
- travis_retry tox -e $TOX_ENV --notest
|
|
|
|
script:
|
|
# prevents "libdc1394 error: Failed to initialize libdc1394" errors
|
|
- sudo ln -s /dev/null /dev/raw1394
|
|
- if [[ $TRAVIS_PYTHON_VERSION == *_site_packages ]]; then SITE_PACKAGES=--sitepackages; fi
|
|
# pip in trusty breaks on packages prefixed with "_". See https://github.com/pypa/pip/issues/3681
|
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.4_with_system_site_packages ]]; then sudo rm -rf /usr/lib/python3/dist-packages/_lxc-0.1.egg-info; fi
|
|
- tox -e $TOX_ENV $SITE_PACKAGES
|
|
|
|
# Report coverage to codecov.io.
|
|
before_install:
|
|
- "[ ! -z $COVERAGE ] && travis_retry pip install codecov || true"
|
|
after_success:
|
|
- "[ ! -z $COVERAGE ] && codecov || true"
|
|
|
|
cache:
|
|
pip: true
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "irc.freenode.org#beets"
|
|
use_notice: true
|
|
skip_join: true
|
|
on_success: change
|
|
on_failure: always
|