Update Travis config for Python specific handling

See the Python documentation for more information:
https://docs.travis-ci.com/user/languages/python/

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
Frederik “Freso” S. Olesen
2019-05-03 11:35:05 +02:00
committed by JoeLametta
parent 7a92650eff
commit bb6a29c5df

View File

@@ -1,6 +1,13 @@
dist: xenial
sudo: required
language: bash
language: python
python:
- "2.7"
virtualenv:
system_site_packages: false
cache: pip
env:
- FLAKE8=false
@@ -9,13 +16,12 @@ env:
install:
# Dependencies
- sudo apt-get -qq update
- sudo pip install --upgrade -qq pip
- sudo apt-get -qq install cdparanoia cdrdao flac gir1.2-glib-2.0 libcdio-dev libiso9660-dev libsndfile1-dev python-gi python-musicbrainzngs python-mutagen python-setuptools sox swig libcdio-utils
- sudo pip install pycdio==0.21 requests setuptools_scm
- pip install --upgrade -qq pip
- sudo apt-get -qq install cdparanoia cdrdao flac gir1.2-glib-2.0 libcdio-dev libgirepository1.0-dev libiso9660-dev libsndfile1-dev sox swig libcdio-utils
- pip install musicbrainzngs mutagen pycdio==0.21 PyGObject requests setuptools setuptools_scm
# Testing dependencies
- sudo apt-get -qq install python-twisted-core
- sudo pip install flake8
- pip install twisted flake8
# Build bundled C utils
- cd src
@@ -23,7 +29,7 @@ install:
- cd ..
# Installing
- sudo python setup.py install
- python setup.py install
script:
- if [ ! "$FLAKE8" = true ]; then python -m unittest discover; fi