Skip to content

Commit

Permalink
Update Travis config for Python specific handling
Browse files Browse the repository at this point in the history
See the Python documentation for more information:
https://docs.travis-ci.com/user/languages/python/

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
  • Loading branch information
Freso authored and JoeLametta committed May 3, 2019
1 parent 7a92650 commit bb6a29c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -9,21 +16,20 @@ 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
- sudo make install
- cd ..

# Installing
- sudo python setup.py install
- python setup.py install

script:
- if [ ! "$FLAKE8" = true ]; then python -m unittest discover; fi
Expand Down

0 comments on commit bb6a29c

Please sign in to comment.